Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because this unordered property is often unexpected, problems can arise when programmers write code that compares floating-point values without considering the semantics of NaN. For example, input validation checks that fail to consider the possibility of a NaN value as input can produce unexpected results. See guideline rule "NUM11-J. Check floating-point inputs for exceptional values" for additional information.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="472122048766d400-2beca553-4a9843b9-95589654-1f1fbca366add545ff87abd1"><ac:plain-text-body><![CDATA[

[[FindBugs 2008

AA. Bibliography#FindBugs 08]]

FE: Doomed test for equality to NaN

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="02cf0f85d35a2018-57d50805-4fa342b3-abf7b804-0912c4741e1c7ffd8d48f94a"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§4.2.3, "Floating-Point Types, Formats, and Values"

http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3]

]]></ac:plain-text-body></ac:structured-macro>

...