divide除不尽报错

解决办法.divide(new BigDecimal(1200), 2, BigDecimal.ROUND_HALF_UP)

除某数的时候设置保留小数位

原文地址:https://www.cnblogs.com/zuoqun/p/8403762.html