BigInteger.ShortValueExact Method

Definition

Converts this BigInteger to a short, checking for lost information.

[Android.Runtime.Register("shortValueExact", "()S", "GetShortValueExactHandler", ApiSince=31)]
public virtual short ShortValueExact ();
[<Android.Runtime.Register("shortValueExact", "()S", "GetShortValueExactHandler", ApiSince=31)>]
abstract member ShortValueExact : unit -> int16
override this.ShortValueExact : unit -> int16

Returns

this BigInteger converted to a short.

Attributes

Remarks

Converts this BigInteger to a short, checking for lost information. If the value of this BigInteger is out of the range of the short type, then an ArithmeticException is thrown.

Added in 1.8.

Java documentation for java.math.BigInteger.shortValueExact().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to