标签: java
BigDecimal bg = new BigDecimal(0.565)); bg.setScale(2, RoundingMode.HALF_UP).toPlainString();
结果:0.56,但是我希望将其四舍五入为0.57,我如何实现这一目标?
0.56
0.57