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

Syntax

[Android.Runtime.Register("divide", "(Ljava/math/BigDecimal;I)Ljava/math/BigDecimal;", "GetDivide_Ljava_math_BigDecimal_IHandler")]
public virtual BigDecimal Divide (BigDecimal divisor, RoundOptions roundingMode)

Parameters

divisor
value by which this is divided.
roundingMode
rounding mode to be used to round the result.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif divisor == null.
Java.Lang.IllegalArgumentExceptionif roundingMode is not a valid rounding mode.
Java.Lang.ArithmeticExceptionif divisor == 0.
Java.Lang.ArithmeticExceptionif roundingMode == ROUND_UNNECESSARY and rounding is necessary according to the scale of this.

Remarks

Returns a new BigDecimal whose value is this / divisor. The scale of the result is the scale of this. If rounding is required to meet the specified scale, then the specified rounding mode roundingMode is applied.

[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