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

Syntax

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

Parameters

divisor
value by which this is divided.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif divisor == null.
Java.Lang.ArithmeticExceptionif divisor == 0.
Java.Lang.ArithmeticExceptionif the result cannot be represented exactly.

Remarks

Returns a new BigDecimal whose value is this / divisor. The scale of the result is the difference of the scales of this and divisor. If the exact result requires more digits, then the scale is adjusted accordingly. For example, 1/128 = 0.0078125 which has a scale of 7 and precision 5.

[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