語言

BigInteger.LongValue 方法

定義

將此大整數 long轉換為 。

[Android.Runtime.Register("longValue", "()J", "GetLongValueHandler")]
public override long LongValue();
[<Android.Runtime.Register("longValue", "()J", "GetLongValueHandler")>]
override this.LongValue : unit -> int64

傳回

這個 BigInteger 轉換成 long

屬性

備註

將此大整數 long轉換為 。 此轉換類似於從 到 的longint,如<引用>Java 語言規範</cite>:若此 BigInteger 太大無法放入 ,long則僅回傳低階 64 位元。 請注意,此轉換可能會遺失 BigInteger 值整體大小的資訊,且返回符號相反的結果。

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

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

適用於