Java.Math.BigInteger.BitCount Method
Returns the number of bits in the two's complement representation of this which differ from the sign bit.

Syntax

[Android.Runtime.Register("bitCount", "()I", "GetBitCountHandler")]
public virtual int BitCount ()

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the number of bits in the two's complement representation of this which differ from the sign bit. If this is negative, the result is equivalent to the number of bits set in the two's complement representation of -this - 1.

Use bitLength(0) to find the length of the binary value in bits.

Implementation Note: Usage of this method is not recommended as the current implementation is not efficient.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1