使用BigDecimal进行精确计算 - commissionAmount=(bill.getReceivableAmount()/months)*commissionRate; 转换
BigDecimal commissionAmount = bill.getReceivableAmount().divide(months).multiply(commissionRate);
原文地址: http://www.cveoy.top/t/topic/qpnL 著作权归作者所有。请勿转载和采集!