js_sys::Math

Function log

Source
pub fn log(x: f64) -> f64
Expand description

The Math.log() function returns the natural logarithm (base e) of a number. The JavaScript Math.log() function is equivalent to ln(x) in mathematics.

MDN documentation