...
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 |
| float-comparison | Partially 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 |
| 56 S | Partially implemented | ||||||
Parasoft C/C++test |
|
|
| MISRA2004-13_3 |
PRQA QA-C |
| 0790 |
RuleChecker |
| float-comparison | Partially checked | ||||||
PVS-Studio | 6.22 | V550 | General analysis rule |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this recommendation on the CERT website.
Related Guidelines
Bibliography
...
...