Uri Guttman wrote:
the correct solution for money has always been to use integers for the smallest amount (e.g. cents). this will always be correct in all languanges.
Sorry, but sometimes you have to use real numbers. On the news, exchange rates are given to a thousand of a cent, which is OK most most people. But when you exchange 1_000_000 dollars at a time, like some big banks, an exchange could be out by as much as $10. So you're back to the two questions:
* What accuracy does the application need? * Does the program meet this accuracy? -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. Regardless of how small the crowd is, there is always one in it who has to find out the hard way that the laws of physics applies to them too. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/