Value representation of floating point types

suggest change

The standard requires that long double provides at least as much precision as double, which provides at least as much precision as float; and that a long double can represent any value that a double can represent, while a double can represent any value that a float can represent. The details of the representation are, however, implementation-defined.

For a floating point type T, std::numeric_limits<T>::radix specifies the radix used by the representation of T.

If std::numeric_limits<T>::is_iec559 is true, then T adheres to IEC 559 / IEEE 754. That is more than the value representation: the arithmetic, infinities, and NaNs follow that standard as well.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents