[cfp-interest 3917] Re: Quantum exponent from fromfp functions
Fred J. Tydeman
tydeman at tybor.com
Wed May 6 07:44:24 PDT 2026
On Wed, 06 May 2026 08:13:27 -0600 (PDT) Fred J. Tydeman wrote:
>
>Joseph S. Myers on the WG14 email list asks:
>
>Should we specify the preferred quantum exponent for the return value of
>the fromfp functions for decimal floating types? The lack of such a
>specification is another issue arising from the change in C23 to give
>these functions a floating return type, that I noticed while reviewing
>N3877 (it is, however, a separate issue from that one about specifying the
>sign of a zero return value, and can be addressed separately).
Since the result is supposed to be an integer,
the quantum exponent should be zero.
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of INCITS/C (ANSI "C")
Sample C17+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the cfp-interest
mailing list