Returns a BigDecimal
whose value is (this /
divisor)
, and whose scale is as specified. If rounding must
be performed to generate a result with the specified scale, the
specified rounding mode is applied.
divisor | value by which this BigDecimal is to be divided. | |
scale | scale of the BigDecimal quotient to be returned. | |
roundingMode | rounding mode to apply. |
this / divisor
ArithmeticException | if divisor is zero,
roundingMode==RoundingMode.UNNECESSARY and
the specified scale is insufficient to represent the result
of the division exactly. |
Diagram: BigInteger, BigDecimal