[cfp-interest 3816] Re: Annex F 2.2#7 - Signaling NaNs as an argument

Damian McGuckin damianm at esi.com.au
Sun Mar 15 19:31:28 PDT 2026


On Wed, 4 Feb 2026, Jim Thomas wrote:

> Recommended Practice says
> 
> NOTE Some functions do not propagate quiet NaN arguments. For
> example, hypot(x, y) returns infinity if x or y is infinite and
> the other is a quiet NaN. The recommended practice in this
> subclause specifies that such functions (and others) raise the
> "invalid" floating-point exception if an argument is a signaling
> NaN, which also implies they return a quiet NaN in these cases.
> 
> This clause talks about propogating quiet NaN arguments. And yet
> midway through, it talks about signaling NaNs.

Yes, you are right, but I had to think about exactly everything it was 
saying.  In fact, the 2nd sentence says that for the signaling NaN 
arguments, it just rewords the previous paragraph, i.e. F.2.2#6.

Why not just replace the second sentence with something like

 	Remember that for signaling NaN arguments, the previous paragraph
 	applies.

Repeating the same words, just rearranged, within a few sentence of the
original words, is confusing.

Thanks - Damian


More information about the cfp-interest mailing list