|
Developer`BitLength
BitLength[n] gives the number of binary bits necessary to represent the integer n.
For positive n, BitLength[n] is effectively an efficient version of Floor[Log[2, n]] + 1.
For negative n it is equivalent to BitLength[BitNot[n]].
See also: IntegerExponent, MantissaExponent.
|