1 回答
已采納

_瀟瀟暮雨
TA貢獻646條經(jīng)驗 獲得超225個贊
使用System.out.printf即可:
float?f?=?1.2345443543f; System.out.printf("%.3f",f);
添加回答
舉報
0/150
提交
取消