BitLength

WMA link


BitLength[x]

gives the number of bits needed to represent the integer x. x's sign is ignored.

Ceiling