# math/log2
Base-2 logarithm of `x`.
## Syntax
[math/log2 $x]
## Parameters
- `$x` — Positive number
## Examples
[math/log2 1] # 0 [math/log2 2] # 1 [math/log2 8] # 3
## Returns
Number — base-2 logarithm of `$x`.
## See Also
`math/log10`, `math/ln`, `math/exp`