摘要: 1、最简单的操作,验证之后是准确的四舍五入 double payPercent=123.345; System.out.println((double)Math.round(payPercent*100)/100); 输出结果:123.35 2、使用BigDecimal 1、 ROUND_UP:远离 阅读全文
posted @ 2020-01-18 10:41 congcongdi 阅读(1650) 评论(0) 推荐(0) 编辑