Bit-length
Bit length or bit width is the number of binary digits, called bits, necessary to represent an unsigned integer as a binary number. Formally, the bit length of a natural number n ≥ 0 {\displaystyle n\geq 0} is ℓ ( n ) = ⌈ log 2 ( n + 1 ) ⌉ {\displaystyle \ell (n)=\lceil \log _{2}(n+1)\rceil } where log 2 {\displaystyle \log _{2}} is the binary logarithm and ⌈ ⋅ ⌉ {\displaystyle \lceil \cdot \rceil } is the ceiling function.