public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode){};
一、roundingMode一共有七种模式
ROUND_UP0;//(远离零方向舍入)
ROUND_DOWN1;//(向零方向舍入)
ROUND_CEILING2;//(向正无限大方向舍…
What is "Rounding" ? Rounding means reducing the digits in a number while trying to keep its value similar. The result is less accurate, but easier to use. Example: 7.3 rounds to 7 Because 7.3 is closer to 7 than to 8 But what about 7.5? Is i…