SPUG: Working with currency
sthoenna at efn.org
Thu Apr 2 17:46:46 PDT 2009
On Thu, April 2, 2009 3:10 pm, Michael R. Wolf wrote:
> I've got some students in class this week whose process was halted
> because they were off by $0.02 in their $3M totals.
> I don't need a *description of the problem*. I understand the
> limitations of software and hardware. What I'm looking for is some
> pointers to *pre-existing solutions*.
The only pre-existing solution that's going to work consistently is:
Store and manipulate in pennies; only use dollars on user input and output.
No modules required. :)
More information about the spug-list