|
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.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |