Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: REM cost reform

...

Comparisons with NaN values can lead to unexpected results.

Rule

Severity

Likelihood

Detectable

RepairableRemediation Cost

Priority

Level

NUM07-J

Low

Probable

Yes

YesMedium

P4P6

L3L2

Automated Detection

Automated detection of comparison with NaN is straightforward. Sound determination of whether the possibility of an unordered result has been correctly handled is not feasible in the general case. Heuristic checks could be useful.

...