語言

BigInteger.LowestSetBit 屬性

定義

回傳此 BigInteger 中最右邊(最低階)1 位元的索引(最右邊 1 位元右側的零位元數)。

public virtual int LowestSetBit { [Android.Runtime.Register("getLowestSetBit", "()I", "GetGetLowestSetBitHandler")] get; }
[<get: Android.Runtime.Register("getLowestSetBit", "()I", "GetGetLowestSetBitHandler")>]
member this.LowestSetBit : int

屬性值

這個 BigInteger 中最右側 one 位元的索引。

屬性

備註

回傳此 BigInteger 中最右邊(最低階)1 位元的索引(最右邊 1 位元右側的零位元數)。 如果這個 BigInteger 沒有 one bit,則回傳 -1。 (計算。 (this == 0? -1 : log2(this & -this)))

的 java.math.BigInteger.getLowestSetBit()Java 檔。

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

適用於