pub fn max(x: f64, y: f64) -> f64
The Math.max() function returns the largest of two numbers.
Math.max()
MDN documentation