js_sys::Math

Function log2

source
pub fn log2(x: f64) -> f64
Expand description

The Math.log2() function returns the base 2 logarithm of a number.

MDN documentation