On Sun, 16 Jan 2005 22:24:44 -0500, Susan Bugher <(E-Mail Removed)> wrote:
>badgolferman wrote:
>> John Doe wrote:
>>
>>>Explain this.
>>>
>>> 2.87
>>>- 1.88
>>>= 0.99
>>>- 0.99
>>>= -1.0842021724855E-19
>>>
>>>I don't do much with a calculator. I'm mostly curious.
>>>
>>>I can't complain but I do anyway.
>>
>>
>> I use ShowCalc, but after replicating what what you have I'm not sure I will
>> anymore....
>
>That's a *small* round-off error. Have you tried doing the same thing in
>another calculator app? I *think* you might see the same result. . .
>IOW - I don't think ShowCalc is responsible for the error. . .
>
>The answer is given in scientific notation. The "E-19" at the end
>indicates you should move the decimal point 19 spaces to the left to see
>the answer in standard notation.
>
>IOW - ShowCalc is telling you that the answer is:
>
> -0.00000000000000000010842021724855
>
>if I counted the zeros correctly. . .
That's NOT a *small* rounding error... that's an ERROR. PERIOD.
Even Microsofts' Calc.exe doesn't produce this error. I've tested that on every
scientific & normal calculator I have in the house & they don't give an error.
I tested it on an old Z-80 computer.... no error.
C, C++, Fortran, Cobol, Pascal & assembly routines I used didn't produce that
error so it MUST be that ShowCalc is wrong & is poorly coded.
Nothing I tested that math problem with produced errors, even when 64-bit
precision was selected

)
I'd dump ShowCalc.... you never know what other errors would be introduced in
future calcs.... I couldn't trust it.
ozzy