→
Ceiling
/
Reference of Built-in Symbols
/
Integer and Number-Theoretical Functions
/
Integer Functions
/
BitLength
/
BitLength
WMA link
BitLength
[
x
]
gives the number of bits needed to represent the integer
x
.
x
's sign is ignored.
BitLength[1023]
BitLength[100]
BitLength[-5]
BitLength[0]
→
Ceiling