...
This rule appears in the C Secure Coding Standard as FLP02-C. Consider avoiding floating point numbers when precise computation is needed.
References
Wiki Markup |
---|
\[[JLS 05|AA. Java References#JLS 05]\] [Section 4.2.3, Floating-Point Types, Formats, and |
[Bloch 08] Item 48: Avoid
float
and double
if exact answers are required[Bloch 05] Puzzle 2: Time for a Change
Values|http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3]
\[[Bloch 08|AA. Java References#Bloch 08]\] Item 48: Avoid {{float}} and {{double}} if exact answers are required
\[[Bloch 05|AA. Java References#Bloch 05]\] Puzzle 2: Time for a Change
\[[Goldberg 91|AA. Java References#Goldberg 91]\] |
...
05. Floating Point (FLP) 05. Floating Point (FLP) FLP01-J. Take care in rearranging floating point expressions