Java.Math.BigDecimal.Remainder Method
Returns a new BigDecimal whose value is this % divisor.

Syntax

[Android.Runtime.Register("remainder", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRemainder_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual BigDecimal Remainder (BigDecimal divisor, MathContext mc)

Parameters

divisor
value by which this is divided.
mc
rounding mode and precision to be used.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif divisor == null.
Java.Lang.ArithmeticExceptionif divisor == 0.
Java.Lang.ArithmeticExceptionif mc.getPrecision() > 0 and the result of this.divideToIntegralValue(divisor, mc) requires more digits to be represented.

Remarks

Returns a new BigDecimal whose value is this % divisor.

The remainder is defined as this - this.divideToIntegralValue(divisor) * divisor.

The specified rounding mode mc is used for the division only.

[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