...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
NUM09-J | Low | Probable | Low | P6 | L2 |
Automated Detection
Automated detection of floating-point loop counters is straightforward.
Tool | Version | Checker | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CodeSonarParasoft Jtest |
| PMDCERT.BasicNUM09.DontUseFloatTypeForLoopIndices FPLI | Do not use floating point variables as Don't use float type for loop indices | ||||||||
Parasoft JtestPVS-Studio |
| PB-NUM-FPLI | Do not use floating point variables as loop indicesV6108 |
Related Guidelines
FLP30-C. Do not use floating-point variables as loop counters | |
ISO/IEC TR 24772:2010 | Floating-point Arithmetic [PLF] |
...