RE: BUG! Erratic....
- Posted by a.tammer at hetnet.nl Mar 24, 2002
- 406 views
The problem of this kind of behaviour will always be there, because, like stated by some of you already, there are decimal values that will never be representable exactly in binary, just like PI or 1/3 will never be exactly representable in decimal. The matter is, however, how exact should a binary representation be? Could working-out a BCD-approach with decimal places explicitely being addressed be the solution? It would be a fair deal slower of course, but my guess is, it will be faster than 'string-math' . Antoine