Skip to main content

max

Function max 

Source
pub fn max<F: FloatFormat>(a: F, b: F, env: &mut FloatEnv) -> F
Expand description

IEEE 754-2008 maximum: returns the larger of a and b. If either operand is SNaN, signals INVALID. If both are NaN, returns a quiet NaN. max(+0, -0) = +0.