BitLength

BitLength[n]

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

Details

Examples

Basic Examples  (2)

Plot it:

Wolfram Research (2007), BitLength, Wolfram Language function, https://reference.wolfram.com/language/ref/BitLength.html.

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_2024_bitlength, author="Wolfram Research", title="{BitLength}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitLength.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_bitlength, organization={Wolfram Research}, title={BitLength}, year={2007}, url={https://reference.wolfram.com/language/ref/BitLength.html}, note=[Accessed: 21-November-2024 ]}