JAVA笔记:double四舍五入并保留两位小数的方法 1.只要输出结果12double x1 = 0.026;System.out.println(String.format("%.2f", x1));2.数据转换1234567 Other 2023-06-16 43 点赞 0 评论 65 浏览