pub fn abs(x: f64) -> f64 ⓘ
dep_web_sys
The Math.abs() function returns the absolute value of a number, that is Math.abs(x) = |x|
Math.abs()
MDN documentation