...
This rule appears in the C Secure Coding Standard as FLP30-C. Do not use floating point variables as loop counters.
References
Wiki Markup |
---|
\[[JLS 05|AA. Java References#JLS 05]\] [Section 4.2.3, Floating-Point Types, Formats, and |
[Bloch 05] Puzzle 34: Down for the
Values|http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3] \[[Bloch 05|AA. Java References#Bloch 05]\] Puzzle 34: Down for the Count |
...
FLP02-J. Do not attempt comparisons with NaN 05. Floating Point (FLP) FLP31-J. Convert integers to floating point for floating point operations