AmigaActive (1397/1525)

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



Manta Soft - Amiga programming & webpage designing
http://mantasoft.aio.co.uk/ ICQ: 21829166
Homepage updated 22/05/00 - New game: Pictris released
- ------------------- Quote of the day: -------------------- -
Wonders of the modern world:
Genetic engineering, Space flight, and VCRs that set their own clock.

Quote carefully and read all ADMIN:README mails