fxlength


fxlength(fx)
      

Return the number of bits of the smallest two's complement representation of fixnum fx. (Does not include the sign bit for negative numbers).

Examples:


fxlength(5)
// 3
fxlength(23)
// 5
      

Also see:

fxbit_count


Core Module Index | Contents