log2 static method

dynamic log2(
  1. double x
)

Implementation

static log2(double x) {
  return log(x) / log(2);
}