語言

BigInteger.ByteValueExact 方法

定義

將此 BigInteger 轉換成 byte,檢查遺失資訊。

[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

傳回

BigInteger 會轉換成 byte.

屬性

備註

將此 BigInteger 轉換成 byte,檢查遺失資訊。 若此 BigInteger 值超出型 byte 別範圍,則拋出 an ArithmeticException

新增於1.8版本。

Java 文件 java.math.BigInteger.byteValueExact()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於