BigInteger.BitCount Method

Definition

Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit.

[Android.Runtime.Register("bitCount", "()I", "GetBitCountHandler")]
public virtual int BitCount ();
[<Android.Runtime.Register("bitCount", "()I", "GetBitCountHandler")>]
abstract member BitCount : unit -> int
override this.BitCount : unit -> int

Returns

Int32

number of bits in the two's complement representation of this BigInteger that differ from its sign bit.

Attributes

Remarks

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

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