[cfp-interest 3753] JTC1/SC22/WG14 Some more editorial fixes

RAJAN BHAKTA rbhakta at us.ibm.com
Wed Jan 7 06:22:41 PST 2026


Here is what I sent JeanHeyd for my action item...


Regards,

Rajan Bhakta




From: RAJAN BHAKTA <rbhakta at us.ibm.com>
Date: Friday, November 28, 2025 at 8:00 AM
To: JeanHeyd Meneide <phdofthehouse at gmail.com>
Subject: JTC1/SC22/WG14 Some more editorial fixes

Hi JeanHeyd,

There are three editorial issues that we (CFP) noticed and would appreciate if they could be fixed. If you want us to write papers for any of these instead let us know!


  1.
The C2x draft N2478 had SNAN related macros in <math.h>.  However, N2476 removed them from <math.h> and added them to <float.h> and
changed their names.
This change should be mentioned in Annex M to let implementors know that the <math.h> SNAN macros are gone.
Suggestion:
Add to M.3 Fifth Edition (near the DECIMAL_DIG macro section):
    — removed macros SNANF, SNAN, SNANL, SNAND32, SNAND64, and SNAND128 from <math.h>, replacing them with FLT_SNAN, DBL_SNAN, LDBL_SNAN, DEC32_SNAN, DEC64_SNAN, and DEC128_SNAN in <float.h>;
Also, add in the same place:
    — added the macros INFINITY, DEC_INFINITY, NAN, and DEC_NAN  to <float.h> and made the ones in <math.h> obsolescent;

  2.
F.10.9.3 #1: function value

      — nextafter(x, y) raises the "overflow" and "inexact" floating-point exceptions for x finite and the function value infinite.
      — nextafter(x, y) raises the "underflow" and "inexact" floating-point exceptions for the function value subnormal or zero and x ̸= y.

      The meaning of “function value” is clear in context, however, the use is so rare that we suggest a change.
      Suggestion: Changing both instances of "function value" to “result”.

      Similarly, for the Instance of “value of a function” not following “return” in I.2 #1:
      — A value is given to an object of an enumerated type other than by assignment of an enumeration constant that is a member of that type, or an enumeration object that has the same type, or the value of a function that returns the same enumerated type (6.7.3.3).
      Suggestion: Change "value of a function" to “value of a function call”.


  1.
7.25.2.7#2: What is the destination type for convert?

      Suggestion: In 7.25.2.7#2 add in the following green text:
      Then, they attempt to convert the subject sequence to a floating-point number of the return type of the function, and return the result.

      The exact same change should be made in the last sentences in #2 in 7.25.2.6 (strtod), 7.33.4.2.2 (wcstod), and 7.33.4.2.3 (wcstodN).

      Reasoning: Just saying "convert … to a floating-point number" could be misunderstood to be referring to an intermediate result, particularly when converting a subject sequence in the decimal form with strtodN or converting a subject sequence in the hexadecimal form with strtod.
      Note that “conversion” in 7.25.2.7 #5 and #6 refers to the conversion mentioned in #2 and so the destination type for the conversion does not need to repeated there.

---

Regards,

Rajan Bhakta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20260107/55a0ee84/attachment-0001.htm>


More information about the cfp-interest mailing list