From: | Andrew Crowe |
Date: | 28 Sep 2000 at 21:21:59 |
Subject: | Re: To sum it up |
Hi Everybody,
>> AC If the basic you're using supports double precision numbers then
>> your AC problems are solved :)
> You seam to be missing the point no matter how precise your FP
> system is you will still suffer from the .1 problem the simple fact
> is that in binary .1 is the same as PI in Decimal you can't get an
> exact representation. You can write your maths routines to handle
> the problem within a certain window but if there supplied equation
> generates a result somewhere during the procedure which falls
> outside that window WHAM there's that problem again. If you don't
> believe me just sit down with pencil and paper and calculate .1 as a
Well, I've forgotten how to do division in binary, apart from it uses
powers, so I can see it needs a lot of digits...
Although, there is one way to fix it, BCD :) (Binary Coded Decimal
'case you didn't know). Bit wastedful on memory, but fine if you
/need/ the accuracy :)
See ya :)
Quote carefully and read all ADMIN:README mails