标签:round exp mod 模式 table cep ble res nbsp
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
说明遇到除不尽的情况了,需要指定商的小数精度和舍入模式。
比如:
a=b.divide(c,2,RoundingMode.HALF_UP);
标签:round exp mod 模式 table cep ble res nbsp
原文地址:http://www.cnblogs.com/chengyujia/p/7873542.html