F.2 Types

1

The C floating types match the IEC 60559 formats as follows:

  • The float type matches the IEC 60559 single format.

  • The double type matches the IEC 60559 double format.

  • The long double type matches an IEC 60559 extended format,[1] else a non-IEC 60559 extended format, else the IEC 60559 double format.

Any non-IEC 60559 extended format used for the long double type shall have more precision than IEC 60559 double and at least the range of IEC 60559 double.[2]

Recommended practice

2

The long double type should match an IEC 60559 extended format.

Footnotes