Template:Oom2

This template determines the log to the base 2, rounded down to an integer (binary Order Of Magnitude), of a number of type float. In other words, it determines the log to the base 2 of the number rounded down to a power of 2.

The internally representable number should not be confused with the given decimal number: Thus the template takes the input as representing an internally representable number, just like #expr does, as opposed to applying string operations to find the characters in the decimal notation and then find the required quantity for the exact decimal number.