Reputation: 24039
Exactly what floating point implementation details are required by the C++11 standard?
Is some version of IEEE 754 required by the C++ standard?
Where is this stated in the C++ standard?
Upvotes: 0
Views: 93
Reputation: 60979
The standard does not require any particular floating point representation. [basic.fundamental]/8:
The value representation of floating-point types is implementation-defined.
However, as IEEE 754 is very common, support can be checked via std::numeric_limits<>::is_iec559
.
Upvotes: 3