[Cfp-interest 3305] Re: ERANGE question
Fred J. Tydeman
tydeman at tybor.com
Wed Oct 9 04:59:24 PDT 2024
On Wed, 09 Oct 2024 09:30:10 +0200 Paul Zimmermann wrote:
>
>Should errno be set to ERANGE, even if x^y rounds to DBL_MAX?
If the round to nearest value is DBL_MAX, then no ERANGE and no overflow.
If the round to nearest value is larger than DBL_MAX, but the round to zero
is DBL_MAX, then yes to ERANGE and overflow.
---
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