Condividi tramite


BigInteger.IntValueExact Method

Definition

Converts this BigInteger to an int, checking for lost information.

[Android.Runtime.Register("intValueExact", "()I", "GetIntValueExactHandler", ApiSince=31)]
public virtual int IntValueExact ();
[<Android.Runtime.Register("intValueExact", "()I", "GetIntValueExactHandler", ApiSince=31)>]
abstract member IntValueExact : unit -> int
override this.IntValueExact : unit -> int

Returns

this BigInteger converted to an int.

Attributes

Remarks

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

Added in 1.8.

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

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