From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/decimal-float.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 devdocs/gcc~13/decimal-float.html (limited to 'devdocs/gcc~13/decimal-float.html') diff --git a/devdocs/gcc~13/decimal-float.html b/devdocs/gcc~13/decimal-float.html new file mode 100644 index 00000000..e6d3a25c --- /dev/null +++ b/devdocs/gcc~13/decimal-float.html @@ -0,0 +1,8 @@ +

6.14 Decimal Floating Types

As an extension, GNU C supports decimal floating types as defined in the N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in GCC will evolve as the draft technical report changes. Calling conventions for any target might also change. Not all targets support decimal floating types.

The decimal floating types are _Decimal32, _Decimal64, and _Decimal128. They use a radix of ten, unlike the floating types float, double, and long double whose radix is not specified by the C standard but is usually two.

Support for decimal floating types includes the arithmetic operators add, subtract, multiply, divide; unary arithmetic operators; relational operators; equality operators; and conversions to and from integer and other floating types. Use a suffix ‘df’ or ‘DF’ in a literal constant of type _Decimal32, ‘dd’ or ‘DD’ for _Decimal64, and ‘dl’ or ‘DL’ for _Decimal128.

GCC support of decimal float as specified by the draft technical report is incomplete:

Types _Decimal32, _Decimal64, and _Decimal128 are supported by the DWARF debug information format.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Decimal-Float.html +

+
-- cgit v1.2.3