[Cfp-interest 2069] Re: Underflow

Fred J. Tydeman tydeman at tybor.com
Tue Jul 20 21:27:04 PDT 2021


On Tue, 20 Jul 2021 12:41:18 -0700 Jim Thomas wrote:
>
>The result underflows if a nonzero result with ordinary accuracy would have magnitude (absolute value) too small for representation as a normalized number in an object of the specified type. Also, the result may underflow if it (with ordinary accuracy) can be represented as a minimum-magnitude number in an object of the specified type and it is inexact 249).
>

That is getting better.

Would (min subnormal)*(0.49), which rounds to zero, be an underflow?
Would adding something like this be needed:  An exact zero is not an underflow

Also, may need words about "unless specified otherwise"
For example:  nextafter( min subnormal, zero) is zero with underflow and inexact.


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