Java.Math.BigDecimal.DivideToIntegralValue Method
Returns a new BigDecimal whose value is the integral part of this / divisor.

Syntax

[Android.Runtime.Register("divideToIntegralValue", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetDivideToIntegralValue_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual BigDecimal DivideToIntegralValue (BigDecimal divisor, MathContext mc)

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 or mc == null.
Java.Lang.ArithmeticExceptionif divisor == 0.
Java.Lang.ArithmeticExceptionif mc.getPrecision() > 0 and the result requires more digits to be represented.

Remarks

Returns a new BigDecimal whose value is the integral part of this / divisor. 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