Returns a BigDecimal number whose value is the value of this BigDecimal number divided by n.
If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
Returns a BigDecimal representing the maximum of this number and the provided number. If this number is greater than or equal to the provided number, returns this number. Otherwise, returns the provided number.
The number to compare with
The maximum of this number and the provided number
Returns a BigDecimal representing the minimum of this number and the provided number. If this number is less than or equal to the provided number, returns this number. Otherwise, returns the provided number.
The number to compare with
The minimum of this number and the provided number
Returns a BigDecimal number whose value is the value of this number minus n.
Returns a BigDecimal whose value is the value of this number plus n.
Returns a BigDecimal whose value is the value of this BigDecimal rounded
Optionaldp: numberDecimal places, 0 to 1e+6 inclusive
Optionalrm: RoundingModeRounding mode: ROUND_DOWN, ROUND_HALF_UP, ROUND_HALF_EVEN or ROUND_UP.
Returns a BigDecimal number whose value is the value of this BigDecimal number times n.
StaticofReturns a new BigDecimal number instance for the given NumberSource.
Class utility to handle decimal arithmetic.