Function wgpu::web_sys::js_sys::Math::sign

source ·
pub fn sign(x: f64) -> f64
Available on webgl or webgpu only.
Expand description

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

MDN documentation