Skip to main content

cmp_int_float

Function cmp_int_float 

Source
pub fn cmp_int_float(a: i64, b: f64) -> Option<Ordering>
Expand description

Compare an i64 against an f64 exactly, without any lossy cast. Returns None only when b is NaN, matching IEEE’s unordered semantics (callers treat None as “comparison false”).