Hi Andrew, Olivier Actually MONEY! has about 16 decimal digits of precision. For instance: >> x: to-money 2 ** 52 / 100 == $45035996273704.96 >> x - $.01 == $45035996273704.95 >> x + $.01 == $45035996273704.97 So money values are still precise to the nearest cent at 45 trillion (45 million million). If the floating point arithmetic is properly handled, the precision should remain at $0.01 up to 2 ** 53 which is about 90 trillion. Cheers Larry ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 13, 2000 5:37 PM Subject: [REBOL] Problem with to-money ??? Re:(4) > Olivier wrote: > > I think that precision when dealing with money is very important (more > important than speed). Money values should be handled internally as an > string of decimal digits, as in COBOL. > > Very big numbers are frequent when you deal with money : $1,000,000,000 > converted to a weakest currency can have 5 or 6 significant digits. They is > other problems when calculating in base 2 instead of base 10 : the numbers > that have an infinite number of digit after the point are not the same. It > has an impact on rounded values. > > I agree with this. REBOL should have a money class/value that handles these > problems better, rather than using floating point base 2 arithmetic. > > Andrew Martin > ICQ: 26227169 > http://members.xoom.com/AndrewMartin/ > -><-
