Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

NUM09-J

low

probable

low

P6

L2

Automated Detection

Automated detection of floating-point loop counters is straightforward.

...

The CERT C Secure Coding Standard

FLP30-C. Do not use floating point variables as loop counters

The CERT C++ Secure Coding Standard

FLP30-CPP. Do not use floating point variables as loop counters

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c9eeca8e-2beb-47b3-ae15-83c67f357ae0"><ac:plain-text-body><![CDATA[

[ISO/IEC TR 24772:2010

http://www.aitcnet.org/isai/]

Floating-point Arithmetic [PLF]

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

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="71e793c5-d65c-44e0-b085-70fb630b472f"><ac:plain-text-body><![CDATA[[[Bloch 2005AA. References#Bloch 05]]

Puzzle 34. Down for the count

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="3d1be88d-8342-4d62-b50f-ae0f5bb7c968"><ac:plain-text-body><![CDATA[

[[JLS 2005AA. References#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>

...

      03. Numeric Types and Operations (NUM)