pub fn fmax(x: f64, y: f64) -> f64
Maximum of two f64 values (handles NaN: returns the non-NaN value).