log2 function

num log2(
  1. num x
)

Computes the common logarithm (base 2) of the value x.

Implementation

num log2(num x) => math.log(x) / math.ln2;