[Cfp-interest 2405] x++ and DFP

Fred J. Tydeman tydeman at tybor.com
Wed Mar 23 15:19:02 PDT 2022


C23 says in 6.5.2.4 Postfix increment and decrement operators
that "1" is added.  Joseph Myers has raised the question:
Which quantum exponent does that "1" have?

For example, should it be 1e0 or 1000000e-6 for 7 digit DFP numbers?

My guess is:  the nearest quantum exponent of what 'x' has.


---
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