Floating Point (FLP)
- FLP00-C. Understand the limitations of floating-point numbers
- FLP01-C. Take care in rearranging floating-point expressions
- FLP02-C. Avoid using floating-point numbers when precise computation is needed
- FLP03-C. Detect and handle floating-point errors
- FLP04-C. Check floating-point inputs for exceptional values
- FLP05-C. Do not use denormalized numbers
- FLP06-C. Convert integers to floating point for floating-point operations
- FLP07-C. Cast the return value of a function that returns a floating-point type
Information for Editors
In order to have a new guideline automatically listed above be sure to label it flp and recommendation .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| FLP00-C | Medium | Probable | No | No | P4 | L3 |
| FLP01-C | Low | Probable | No | No | P2 | L3 |
| FLP02-C | Low | Probable | No | No | P2 | L3 |
| FLP03-C | Low | Probable | No | No | P2 | L3 |
| FLP04-C | Low | Probable | No | Yes | P4 | L3 |
| FLP05-C | Low | Probable | No | No | P2 | L3 |
| FLP06-C | Low | Probable | No | No | P2 | L3 |
| FLP07-C | Low | Probable | No | Yes | P4 | L3 |
Related Rules and Recommendations
| INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors |


