[][src]Function js_sys::Math::log2

pub fn log2(x: f64) -> f64

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

MDN documentation