no-negated-float-comparison Disallow negated floating-point ordering comparisons that accept NaN !(left < right) evaluates to true when either operand is NaN because every ordering comparison with NaN evaluates to false. Instead, you SHOULD handle NaN explicitly and write the intended positive comparison, such as !left.isNaN() && !right.isNaN() && left >= right. - Category: correctness - Level: warning - Fix: none - Scope: module Reported function isAtLeast(left: float64, right: float64): boolean { return !(left < right); } Accepted function isAtLeast(left: float64, right: float64): boolean { return !left.isNaN() && !right.isNaN() && left >= right; } Prior art - Clippy ยท negcmpoponpartialord language/linter/src/rules/correctness/nonegatedfloatcomparison.rs:6