问题:使用BigDecimal 做除法运算,提示错误

java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result

解决:

给divide方法设置精确的小数点,如:divide(xxxxx,2)

 

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2022-01-08
  • 2021-11-03
  • 2021-09-21
  • 2021-12-04
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-07-30
  • 2021-11-28
  • 2022-01-14
  • 2021-05-31
相关资源
相似解决方案