From: Gregory Brown Date: 2007-06-22T09:48:38+09:00 Subject: Re: Ruby doesn't know how to multiply On 6/21/07, Michael W. Ryder <_mwryder@worldnet.att.net> wrote: > A simple way to get the correct figure is to do what is used often with > currency to prevent these types of errors. If I enter 'puts > 1495.0*6.0/1000.0' I get 8.97. The only thing necessary is to keep > track of the number of decimal points. Much better is to store the numbers as integers and convert to decimal, guaranteeing zero loss.