print a float number with 3 digits following2023-07-19 15:59:40just use the java's printf function. It is like C's printf. System.out.printf("%.3f\n", x); 上一篇:javascript – MongoError:filter参数必须是一个对象下一篇:PLAN: 入门题目