BigDecimal出现java.lang.ArithmeticException Non-Terminating Decimal Expansion 2020-01-16 Java 0 评论 字数统计: 45(字) 阅读时长: 1(分) 错误 java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result 原因 出现无限循环小数了 解决 BigDecimal#divide(num, scale) BigDecimal#divide(num, scale, roundingMode) 简单粗暴霸气,双击666~