Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Bitwise Operations >

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.
New in 6
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team