Sdílet prostřednictvím


BigInteger.ByteValueExact Method

Definition

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

[Android.Runtime.Register("byteValueExact", "()B", "GetByteValueExactHandler", ApiSince=31)]
public virtual sbyte ByteValueExact ();
[<Android.Runtime.Register("byteValueExact", "()B", "GetByteValueExactHandler", ApiSince=31)>]
abstract member ByteValueExact : unit -> sbyte
override this.ByteValueExact : unit -> sbyte

Returns

this BigInteger converted to a byte.

Attributes

Remarks

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

Added in 1.8.

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

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