Share via


BigInteger.IntValue Method

Definition

Converts this BigInteger to an int.

[Android.Runtime.Register("intValue", "()I", "GetIntValueHandler")]
public override int IntValue ();
[<Android.Runtime.Register("intValue", "()I", "GetIntValueHandler")>]
override this.IntValue : unit -> int

Returns

this BigInteger converted to an int.

Attributes

Remarks

Converts this BigInteger to an int. This conversion is analogous to a narrowing primitive conversion from long to int as defined in <cite>The Java Language Specification</cite>: if this BigInteger is too big to fit in an int, only the low-order 32 bits are returned. Note that this conversion can lose information about the overall magnitude of the BigInteger value as well as return a result with the opposite sign.

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

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