[Cfp-interest 2338] Re: nan("1111111111111111111111....")

Fred J. Tydeman tydeman at tybor.com
Sun Jan 16 20:41:13 PST 2022


On Mon, 17 Jan 2022 03:07:04 +0100 Vincent Lefevre wrote:
>
>Finding which integers yield a FP_INVALID could give some idea...
>If this occurs only for i >= 2^64, that's probably STRTOULL.

My mis-remembering.
It is errno gets set to ERANGE and no FP flags are raised.



---
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