BigInteger.bitCount

Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit. This method is useful when implementing bit-vector style sets atop BigIntegers.

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

class BigInteger
int
bitCount
()

Meta