[Cfp-interest 1656] DEC_EVAL_METHOD in footnote

Fred J. Tydeman tydeman at tybor.com
Mon Jun 22 13:49:16 PDT 2020


On Fri, 19 Jun 2020 10:11:01 -0700 (PDT) Fred J. Tydeman wrote:
>
> Expression eval footnote.
> AI: Fred - write paper on DEC_EVAL_METHOD.

Here is the text version.  If this is OK, I will make an HTML version for WG14.

WG14 N2478 C2X, 6.6 Constant expressions, paragraph 5 has:

 If a floating expression is evaluated in the translation environment,
 the arithmetic range and precision shall be at least as great as if
 the expression were being evaluated in the execution environment.122)

 122) The use of evaluation formats as characterized by FLT_EVAL_METHOD
 also applies to evaluation in the translation environment.

Since decimal floating-point and DEC_EVAL_METHOD (5.2.4.2.3p2) have
been added to C2X, that footnote should be changed to:

 122) The use of evaluation formats as characterized by FLT_EVAL_METHOD
 and DEC_EVAL_METHOD also applies to evaluation in the translation
 environment.


---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list