BigDecimal.Remainder Method

Definition

Overloads

Remainder(BigDecimal)

Returns a BigDecimal whose value is (this % divisor).

Remainder(BigDecimal, MathContext)

Returns a BigDecimal whose value is (this % divisor), with rounding according to the context settings.

Remainder(BigDecimal)

Returns a BigDecimal whose value is (this % divisor).

[Android.Runtime.Register("remainder", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetRemainder_Ljava_math_BigDecimal_Handler")]
public virtual Java.Math.BigDecimal? Remainder (Java.Math.BigDecimal? divisor);
[<Android.Runtime.Register("remainder", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetRemainder_Ljava_math_BigDecimal_Handler")>]
abstract member Remainder : Java.Math.BigDecimal -> Java.Math.BigDecimal
override this.Remainder : Java.Math.BigDecimal -> Java.Math.BigDecimal

Parameters

divisor
BigDecimal

value by which this BigDecimal is to be divided.

Returns

this % divisor.

Attributes

Exceptions

if divisor == null.

if divisor == 0.

Remarks

Java documentation for java.math.BigDecimal.remainder(java.math.BigDecimal).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Remainder(BigDecimal, MathContext)

Returns a BigDecimal whose value is (this % divisor), with rounding according to the context settings.

[Android.Runtime.Register("remainder", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRemainder_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Remainder (Java.Math.BigDecimal? divisor, Java.Math.MathContext? mc);
[<Android.Runtime.Register("remainder", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRemainder_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")>]
abstract member Remainder : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
override this.Remainder : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal

Parameters

divisor
BigDecimal

value by which this BigDecimal is to be divided.

mc
MathContext

the context to use.

Returns

this % divisor, rounded as necessary.

Attributes

Exceptions

if divisor == null.

if divisor == 0.

if mc.getPrecision() > 0 and the result of this.divideToIntegralValue(divisor, mc) requires more digits to be represented.

Remarks

Java documentation for java.math.BigDecimal.remainder(java.math.BigDecimal, java.math.MathContext).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to