解决办法.divide(new BigDecimal(1200), 2, BigDecimal.ROUND_HALF_UP) 除某数的时候设置保留小数位 转载于:https://www.cnblogs.com/zuoqun/p/8403762.html