- divisor
- value by which this is divided.
- roundingMode
- rounding mode to be used to round the result.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.NullPointerException if divisor == null. Java.Lang.IllegalArgumentException if roundingMode is not a valid rounding mode. Java.Lang.ArithmeticException if divisor == 0. Java.Lang.ArithmeticException if roundingMode == ROUND_UNNECESSARY and rounding is necessary according to the scale of this.
Returns a new BigDecimal whose value is this / divisor. The scale of the result is the scale of this. If rounding is required to meet the specified scale, then the specified rounding mode roundingMode is applied.