logb

logb is a built-in function in `C source code'.

(logb ARG)

Returns largest integer <= the base 2 log of the magnitude of ARG.
This is the same as the exponent of a float.