Java.Math.BigDecimal.IntValueExact Method
Returns this BigDecimal as a int value if it has no fractional part and if its value fits to the int range ([-231.

Syntax

[Android.Runtime.Register("intValueExact", "()I", "GetIntValueExactHandler")]
public virtual int IntValueExact ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif rounding is necessary or the number doesn't fit in an int.

Remarks

Returns this BigDecimal as a int value if it has no fractional part and if its value fits to the int range ([-231..231-1]). If these conditions are not met, an ArithmeticException is thrown.

[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