Skip to main content

min_pair

Function min_pair 

Source
pub fn min_pair(a: f64, b: f64) -> f64
Expand description

PHP min($a, $b) of two floats written as a direct two-argument call, which PHP 8.4+ compiles to its frameless form: $a < $b ? $a : $b. With a NAN that is $b, unlike min (the variadic form, min(...$values)), which keeps the first argument.