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

Syntax

[Android.Runtime.Register("longValueExact", "()J", "GetLongValueExactHandler")]
public virtual long LongValueExact ()

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 a long.

Remarks

Returns this BigDecimal as a long value if it has no fractional part and if its value fits to the int range ([-263..263-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