Functions

log2

Supported By

Syntax

[the] log2 of factor

log2 ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the log2 of 10 -- yields 3.321928

Description

The log2 function returns the base-2 (binary) logarithm of the number passed to it.

If the argument is a positive integer or number, a number is returned. If the argument is zero, negative infinity is returned. If the argument is a negative integer or number, NaN is returned. To get a complex result, convert the argument to a complex.

If the argument is a complex, a complex is returned.

See Also

exp, exp1, exp2, exp10, ln, ln1, log10, log