| Wiki Markup |
|---|
According to the Java Language Specification \[[JLS 2005|AA. Java References#JLS 05]\], Section 4.2.3, "Floating-Point Types, Formats, and Values": |
NaNis unordered, so the numerical comparison operators<,<=,>, and>=returnfalseif either or both operands areNaN. The equality operator==returnsfalseif either operand isNaN, and the inequality operator!=returnstrueif either operand isNaN.
...
Comparisons with NaN values may lead to unexpected results.
Rule Guideline | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
FLP05-J | low | probable | medium | P4 | L3 |
...