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