Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider v2.4 (sch jbop) (X_X)@==(Q_Q)@

...

Consequently, care must be taken when rearranging floating point exceptions to ensure the greatest accuracy of the result.

Risk Assessment

Failing to understand the limitations in precision of floating-point-represented numbers, and the implications of this on the arrangement of expressions, can cause unexpected arithmetic results.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FLP01-A C

low

probable

high

P2

L3

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

References

Wiki Markup
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 5.1.2.3, "Program execution"
\[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] "PLF Floating Point Arithmetic"

...

FLP00-C. Understand the limitations of floating point numbers      05. Floating Point (FLP)       FLP02-AC. Consider avoiding floating point numbers when precise computation is needed