[Cfp-interest 1780] Gradual overflow

Fred J. Tydeman tydeman at tybor.com
Wed Sep 23 16:56:00 PDT 2020


If I change overflow from:

A floating result overflows if the magnitude of the mathematical
result is finite but so large that the mathematical result cannot be
represented without extraordinary roundoff error in an object of the
specified type.

to:

The result overflows if the magnitude of the mathematical result is
finite and greater than the maximum normal number in the specified type.

It makes it hard to talk about:
   gradual overflow versus true overflow and HUGE_VAL
   required versus implementation defined error indication

Given that this case only applies to long double being a pair of
doubles, I do not believe it is worth the effort to change.


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