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

Syntax

[Android.Runtime.Register("divide", "(Ljava/math/BigDecimal;ILjava/math/RoundingMode;)Ljava/math/BigDecimal;", "GetDivide_Ljava_math_BigDecimal_ILjava_math_RoundingMode_Handler")]
public virtual BigDecimal Divide (BigDecimal divisor, int scale, RoundingMode 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 or roundingMode == null.
Java.Lang.ArithmeticExceptionif divisor == 0.
Java.Lang.ArithmeticExceptionif roundingMode == RoundingMode.UNNECESSARY and rounding is necessary according to the given scale and given precision.

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