Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using a representation other than floating point may allow for more accurate results.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FLP02-C

Low

Probable

High

P2

L3

Automated Detection

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V
float-comparisonPartially checked
Compass/ROSE

 

 



Can detect violations of this recommendation. In particular, it checks to see if the arguments to an equality operator are of a floating-point type

LDRA tool suite
Include Page
LDRA_V
LDRA_V
56 SPartially implemented
Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V
MISRA2004-13_3
 

PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
0790
 

RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
float-comparisonPartially checked
PVS-Studio6.22V550General analysis rule

Related Vulnerabilities

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

Related Guidelines

Bibliography

...


...