共用方式為


BigInteger.ShortValueExact 方法

定義

將這個 BigInteger 轉換成 short,檢查是否有遺失的資訊。

[Android.Runtime.Register("shortValueExact", "()S", "GetShortValueExactHandler", ApiSince=31)]
public virtual short ShortValueExact ();
[<Android.Runtime.Register("shortValueExact", "()S", "GetShortValueExactHandler", ApiSince=31)>]
abstract member ShortValueExact : unit -> int16
override this.ShortValueExact : unit -> int16

傳回

這會 BigInteger 轉換成 short

屬性

備註

將這個 BigInteger 轉換成 short,檢查是否有遺失的資訊。 如果這個 BigInteger 的值超出型別的範圍 short ,則會 ArithmeticException 擲回 。

已在1.8中新增。

java.math.BigInteger.shortValueExact()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於