Java.Math.BigDecimal.DivideAndRemainder Method
Returns a BigDecimal array which contains the integral part of this / divisor at index 0 and the remainder this % divisor at index 1.

Syntax

[Android.Runtime.Register("divideAndRemainder", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)[Ljava/math/BigDecimal;", "GetDivideAndRemainder_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual BigDecimal[] DivideAndRemainder (BigDecimal divisor, MathContext mc)

See Also

BigDecimal.DivideToIntegralValue(BigDecimal)
BigDecimal.Remainder(BigDecimal)

Parameters

divisor
value by which this is divided.
mc
math context which determines the maximal precision of the result.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif divisor == null.
Java.Lang.ArithmeticExceptionif divisor == 0.

Remarks

Returns a BigDecimal array which contains the integral part of this / divisor at index 0 and the remainder this % divisor at index 1. The quotient is rounded down towards zero to the next integer. The rounding mode passed with the parameter mc is not considered. But if the precision of mc > 0 and the integral part requires more digits, then an ArithmeticException is thrown.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1