This is a beta autodoc build; expect bugs and missing information.
std
math
log2
fn
log2
(
x
:
anytype
)
@TypeOf
(
x
)
[
src
]
Returns the base-2 logarithm of x.
Special Cases:
log2(+inf) = +inf
log2(0) = -inf
log2(x) = nan if x < 0
log2(nan) = nan
Parameters
x
:
anytype
,