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
CodeSonar
Parasoft Jtest
Include Page
CodeSonar
Parasoft_V
CodeSonar
Parasoft_V
PMD
CERT.
Basic
NUM09.
DontUseFloatTypeForLoopIndices
Don't use float type for
FPLIDo not use floating point variables as loop indices
Parasoft Jtest
PVS-Studio

Include Page

java:Parasoft

PVS-Studio_V

java:Parasoft

PVS-Studio_V

PB-NUM-FPLIImplemented
V6108

Related Guidelines

Bibliography

...


...