java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal res
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.BigDecimal.divide() 没有精确的可表示的十进制结果。2是保留小数位数.divide(product.getPrice(), 2, RoundingMode.HALF_UP);
原创
2021-01-29 10:57:17 ·
59 阅读 ·
0 评论