log2()
function log2(float $num): float
Returns the base-2 logarithm of a number.
Parameters:
$num(float)
Returns: float
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how log2 is implemented in the compiler, see the internals page.