System.out.println(String.format("%.2f", f));
保存两位小数
保留几位小数输出
最新推荐文章于 2024-06-01 08:00:00 发布
System.out.println(String.format("%.2f", f));
保存两位小数