[Cfp-interest 3239] Re: Can nan() set errno?
Fred J. Tydeman
tydeman at tybor.com
Wed Aug 21 19:25:54 PDT 2024
On Wed, 21 Aug 2024 17:42:17 -0700 Jim Thomas wrote:
>
>> Suppose, this long string to nan() were treated as a range error (overflow).
>
>Does some implementation do this? An implementation isn't permitted to add a range errors unless the floating result overflows or underflows.
glibc sets errno to ERANGE if there are lots of digits in the string.
---
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