摘要: //小数点后两位四舍五入 private double formatDouble2(double d) { BigDecimal bigDecimal = new BigDecimal(d); double bg = bigDecimal.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); return bg; } 阅读全文
posted @ 2019-08-29 11:56 Egg丶牛皮 阅读(2414) 评论(0) 推荐(0) 编辑