BitLength

BitLength[n]

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

Details

Examples

Basic Examples  (2)

Plot it:

Introduced in 2007
 (6.0)