blength(i)
Return the number of bits set in the integer i.
i
Returns the number of bits of the smallest two's complement representation of i, not including the sign bit for negative numbers.
blength(5) // 3
Core Module Index | Contents