js_sys::Math

Function sqrt

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

The Math.sqrt() function returns the square root of a number, that is ∀x ≥ 0, Math.sqrt(x) = √x = the unique y ≥ 0 such that y^2 = x

MDN documentation