divide And Remainder
Returns a two-element BigDecimal array containing the result of divideToIntegralValue followed by the result of remainder on the two operands.
Note that if both the integer quotient and remainder are needed, this method is faster than using the divideToIntegralValue and remainder methods separately because the division need only be carried out once.
Return
a two element BigDecimal array: the quotient (the result of divideToIntegralValue) is the initial element and the remainder is the final element.
Since
1.5
See also
Parameters
value by which this BigDecimal is to be divided, and the remainder computed.
Throws
if divisor==0
Returns a two-element BigDecimal array containing the result of divideToIntegralValue followed by the result of remainder on the two operands calculated with rounding according to the context settings.
Note that if both the integer quotient and remainder are needed, this method is faster than using the divideToIntegralValue and remainder methods separately because the division need only be carried out once.
Return
a two element BigDecimal array: the quotient (the result of divideToIntegralValue) is the initial element and the remainder is the final element.
Since
1.5
See also
Parameters
value by which this BigDecimal is to be divided, and the remainder computed.
the context to use.
Throws
if the result is inexact but the rounding mode is UNNECESSARY, or mc._precision > 0 and the result of this.divideToIntgralValue(divisor) would require a _precision of more than mc._precision digits.