BigDecimal
BigDecimal除法运算应该设置保留小数位,不然可能会报
Non-terminating decimal expansion; no exact representable decimal result.错误
b1.divide(b2,scale,BigDecimal.ROUND_HALF_UP).doubleValue();
Non-terminating decimal expansion; no exact representable decimal result.错误
b1.divide(b2,scale,BigDecimal.ROUND_HALF_UP).doubleValue();
浙公网安备 33010602011771号