From: Mikel Lindsaar Date: 2007-11-18T09:50:10+09:00 Subject: Re: How to avoid Fixnum rounding error > Jari Williamsson wrote: > > Which is the best approach to avoid division rounding errors when > > performing integer division with a Fixnum? Is there any built-in method > > for this? If you are talking about money and avoiding rounding errors on dollars and cents, you can use the Money class (google it) or you can multiply your dollars and cents by 100 to get an integer and then only deal with whole cent values. Multiplying by 100 is not a complete solution if you are really tracking money and not just the price of an item which there might be multiple of, but it is an easy solution to an old problem if all you need to do is add tax and minus shipping without getting something like a final price of $33.01 when it should really be $33. Regards Mikel http://lindsaar.net/