Versions Compared

Key

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

...

Using floating-point loop counters can lead to unexpected behavior.

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.

ToolVersionCheckerDescription
CodeSonar4.2

PMD.Basic.DontUseFloatTypeForLoopIndices

Don't use float type for loop indicesParasoft Jtest9.5PB-NUM-FPLIImplemented
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
CERT.NUM09.FPLIDo not use floating point variables as loop indices
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V6108

Related Guidelines

Bibliography

...


...