Java.Math.BigDecimal.Divide Method
Returns a new BigDecimal whose value is this / divisor.

Syntax

[Android.Runtime.Register("divide", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetDivide_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual BigDecimal Divide (BigDecimal divisor, MathContext mc)

Parameters

divisor
value by which this is divided.
mc
rounding mode and precision for the result of this operation.

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.getRoundingMode() == UNNECESSARY and rounding is necessary according mc.getPrecision().

Remarks

Returns a new BigDecimal whose value is this / divisor. The result is rounded according to the passed context mc. If the passed math context specifies precision 0, then this call is equivalent to this.divide(divisor).

[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