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


BitLength
BitLength[n]
gives the number of binary bits necessary to represent the integer n.
Tech Notes
Related Guides
History
Text
Wolfram Research (2007), BitLength, Wolfram Language function, https://reference.wolfram.com/language/ref/BitLength.html.
CMS
Wolfram Language. 2007. "BitLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BitLength.html.
APA
Wolfram Language. (2007). BitLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BitLength.html
BibTeX
@misc{reference.wolfram_2025_bitlength, author="Wolfram Research", title="{BitLength}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitLength.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_bitlength, organization={Wolfram Research}, title={BitLength}, year={2007}, url={https://reference.wolfram.com/language/ref/BitLength.html}, note=[Accessed: 11-August-2025]}