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

Syntax

[Android.Runtime.Register("shortValueExact", "()S", "GetShortValueExactHandler")]
public virtual short ShortValueExact ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif rounding is necessary of the number doesn't fit in a short.

Remarks

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