Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Developer Context Objects in Mathematica 5 /

Developer`BitLength

FilledSmallSquare BitLength[n] gives the number of binary bits necessary to represent the integer n.

FilledSmallSquare For positive n, BitLength[n] is effectively an efficient version of Floor[Log[2, n]] + 1.

FilledSmallSquare For negative n it is equivalent to BitLength[BitNot[n]].

FilledSmallSquare See also: IntegerExponent, MantissaExponent.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: