Be careful when rearranging floating-point expressions to ensure the greatest accuracy of the result.
Section 5.1.2.3, para. paragraph 14, of the C standard Standard [ISO/IEC 9899:2011], states:
...
Search for vulnerabilities resulting from the violation of this recommendation on the CERT website.
Related Guidelines
...
FLP01-CPP. Take care in rearranging floating point expressions | |
---|---|
ISO/IEC TR 24772 | Floating-point arithmetic [PLF] |
Bibliography
...
] | Section 5.1.2.3, "Program |
---|
...
Execution" |
---|
ISO/IEC TR 24772 "PLF Floating point arithmetic"
...
...