Main Content
AUTOSAR C++14 Rule M3-9-3
The underlying bit representations of floating-point values shall not be used
Description
Rule Definition
The underlying bit representations of floating-point values shall not be used.
Rationale
The underlying bit representations of floating point values vary across compilers. If you directly use the underlying representation of floating point values, your program is not portable across implementations.
Polyspace Implementation
The rule checker flags conversions from pointers to floating point types into pointers to integer types, and vice versa.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Basic Concepts |
Category: Required, Automated |
Version History
Introduced in R2019a