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

Syntax

[Android.Runtime.Register("divide", "(Ljava/math/BigDecimal;II)Ljava/math/BigDecimal;", "GetDivide_Ljava_math_BigDecimal_IIHandler")]
public virtual BigDecimal Divide (BigDecimal divisor, int scale, RoundOptions roundingMode)

Parameters

divisor
value by which this is divided.
scale
the scale of the result returned.
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 given scale.

Remarks

Returns a new BigDecimal whose value is this / divisor. As scale of the result the parameter scale is used. 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