Floating Point (FLP)
- FLP30-C. Do not use floating-point variables as loop counters
- FLP32-C. Prevent or detect domain and range errors in math functions
- FLP34-C. Ensure that floating-point conversions are within range of the new type
- FLP36-C. Preserve precision when converting integral values to floating-point type
- FLP37-C. Do not use object representations to compare floating-point values
Information for Editors
In order to have a new guideline automatically listed above be sure to label it flp and rule .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| FLP30-C | Low | Probable | Yes | Yes | P6 | L2 |
| FLP32-C | Medium | Probable | Yes | Yes | P12 | L1 |
| FLP34-C | Low | Unlikely | Yes | Yes | P3 | L3 |
| FLP36-C | Low | Unlikely | Yes | No | P2 | L3 |
| FLP37-C | Low | Unlikely | Yes | Yes | P3 | L3 |
Related Rules and Recommendations
| INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors |


