devela::_dep::js_sys::Math

Function sign

Source
pub fn sign(x: f64) -> f64 
Available on crate feature dep_js_sys only.
Expand description

The Math.sign() function returns the sign of a number, indicating whether the number is positive, negative or zero.

MDN documentation