Is there a fix to display 0 when arithmetic underflow occurs on the Windows 7 calculator?
- by Pascal Qyy
I have a problem that exasperates me:
When I take the Windows 7 calculator in standard mode, if I do
4, then v (square root), the result is 2
Fine.
But, at this point, if I do
- (minus), then 2, the result is -1,068281969439142e-19 instead of 0!
OK, I know about ? (machine epsilon), and yes, -1,068281969439142e-19 is less than the 64 bits ? (1.11e-16), so, we have an arithmetic underflow, in other words in this case: 0.
Great, my computer is able to represent subnormal numbers instead of just flush to zero when this happens, and it seems that it is an improvement!
Subnormal values fill the underflow gap with values where the absolute distance between them are the same as for adjacent values just outside of the underflow gap. This is an improvement over the older practice to just have zero in the underflow gap, and where underflowing results were replaced by zero (flush to zero).
BUT:
this result is false!
when you try to explain the concept of the square root to a child and you end up with this kind of result, it only complicates your task...
what is the point to represent subnormal numbers in a standard, non scientific calculator?
So, is there a way to fix this?