fn numeric_compare(a: &str, b: &str) -> Ordering {
    #![allow(clippy::comparison_chain)]
    let fa = permissive_f64_parse(a);
    let fb = permissive_f64_parse(b);
    // f64::cmp isn't implemented because NaN messes with it
    // but we sidestep that with permissive_f64_parse so just fake it
    if fa > fb {
        Ordering::Greater
    } else if fa < fb {
        Ordering::Less
    } else {
        Ordering::Equal
    }
}
/// Compares two floating point numbers, with errors being assumed to be -inf.
/// Stops coercing at the first whitespace char, so 1e2 will parse as 100 but
/// 1,000 will parse as -inf.
Compares two floating point numbers, with errors being assumed to be -inf.
Stops coercing at the first whitespace char, so 1e2 will parse as 100 but
1,000 will parse as -inf.
Compares two floating point numbers with errors being assumed to be - inf . Stops coercing at the first whitespace char so 1e2 will parse as 100 but 1 000 will parse as - inf .
fn numeric_compare(a: &str, b: &str) -> Ordering {
    #![allow(clippy::comparison_chain)]
    let fa = permissive_f64_parse(a);
    let fb = permissive_f64_parse(b);
    // f64::cmp isn't implemented because NaN messes with it
    // but we sidestep that with permissive_f64_parse so just fake it
    if fa > fb {
        Ordering::Greater
    } else if fa < fb {
        Ordering::Less
    } else {
        Ordering::Equal
    }
}
fn numeric_compare ( a : & str , b : & str ) -> Ordering { # ! [ allow ( clippy comparison_chain ) ] let fa = permissive_f64_parse ( a ) ; let fb = permissive_f64_parse ( b ) ; // f64::cmp isn't implemented because NaN messes with it // but we sidestep that with permissive_f64_parse so just fake it if fa > fb { Ordering :: Greater } else if fa < fb { Ordering :: Less } else { Ordering :: Equal } }
Compares two floating point numbers, with errors being assumed to be -inf.
Compares two floating point numbers with errors being assumed to be - inf .
a
&str
b
&str
a
&str
b
&str