the
log2
of
factor
log2
(
expression )
Factor and expression yield integer
s, number
s, or complex
es.
put the log2 of 10 -- yields 3.321928
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.