Share via


BigInteger.LowestSetBit Property

Definition

Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit).

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

Property Value

index of the rightmost one bit in this BigInteger.

Attributes

Remarks

Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit). Returns -1 if this BigInteger contains no one bits. (Computes (this == 0? -1 : log2(this & -this)).)

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

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