[Cfp-interest 2557] Re: Rounding direction macros
Jim Thomas
jaswthomas at sbcglobal.net
Sat Oct 29 14:46:46 PDT 2022
Good catch, Fred.
In C18 the last sentence in the 7.6 paragraph specifying the rounding direction macros has "The defined macros expand to integer constant expressions whose values are distinct nonnegative values.” This sentence was lost. In the C23 CD the rounding direction macros for decimal, which were inserted immediately after the ones for standard floating types, has "The macros expand to integer constant expressions whose values are distinct nonnegative values.” A copy of this sentence should be appended to the preceding paragraph (to replace the lost sentence).
- Jim Thomas
> On Oct 29, 2022, at 11:00 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
>
> The fegetround function returns either a rounding direction macro value
> or a negative value. That implies that none of the rounding direction
> macros can be negative. Yet, I see no requirement that the
> rounding direction macros be non-negative. Am I missing something?
>
>
> ---
> 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.
>
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
More information about the Cfp-interest
mailing list