bitCount

bitCount

> Functions

Returns the number of 1 bits in the binary representation of the integer x (the Hamming weight). The count is done over the 64 bits of a signed integer: a negative number has its sign bit set, and bitCount(-1) returns 64 since all its bits are set. The function also works on big integers.

Parameters
Return
Note