If the scaled value is not in the range of representable values for its type, the program is ill -formed.
如果乘积值不在其表达的值域内,则程序就是病态形式的。
Internally, BigDecimal is represented as an arbitrary-precision unscaled value and a scale factor, which represents how many places to move the decimal point left to obtain the scaled value.
在内部,可以用任意精度任何范围的值和一个换算因子来表示BigDecimal,换算因子表示左移小数点多少位,从而得到所期望范围内的值。
As soon as the total disk usage has been scaled between 0 and 1,000, it is divided by 10 to acquire a 0-100 value.
一旦总磁盘使用量的范围落在0到1,000的范围内,就会被除以10以获得0到100之间的值。
应用推荐