Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Parasoft Jtest 2020.2

...

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
Include Page
CodeSonar_V
CodeSonar_V

PMD.Basic.DontUseFloatTypeForLoopIndices

Don't use float type for loop indices
Parasoft Jtest
Include Page
java:
Parasoft_V
java:
Parasoft_V
PB-NUM-FPLI
Implemented
Do not use floating point variables as loop indices

Related Guidelines

Bibliography

...


...