BigInteger.LongValueExact Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts this BigInteger
to a long
, checking
for lost information.
[Android.Runtime.Register("longValueExact", "()J", "GetLongValueExactHandler", ApiSince=31)]
public virtual long LongValueExact ();
[<Android.Runtime.Register("longValueExact", "()J", "GetLongValueExactHandler", ApiSince=31)>]
abstract member LongValueExact : unit -> int64
override this.LongValueExact : unit -> int64
Returns
this BigInteger
converted to a long
.
- Attributes
Remarks
Converts this BigInteger
to a long
, checking for lost information. If the value of this BigInteger
is out of the range of the long
type, then an ArithmeticException
is thrown.
Added in 1.8.
Java documentation for java.math.BigInteger.longValueExact()
.
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.