摘要: 保留两位小数 方案一 Double totalSaleAmount = 4.174558045899999E7; DecimalFormat df = new DecimalFormat("#.##"); System.out.println("df.format(totalSaleAmount) 阅读全文
posted @ 2023-06-21 09:15 骚哥 阅读(112) 评论(0) 推荐(0) 编辑