[Cfp-interest 1974] remquo( )
Fred J. Tydeman
tydeman at tybor.com
Wed Apr 14 12:28:16 PDT 2021
There are four cases where remquo() can return a NaN:
remquo( NaN, y, &quo)
remquo( x, NaN, &quo)
remquo( infinity, y, &quo)
remquo( x, 0, &quo)
Only the last case (y==0) says that quo's value is unspecified.
Seems like an oversite.
Note: quo is an int, so cannot hold the value NaN.
---
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