|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^2: numeric values acting funnyby tachyon (Chancellor) |
| on Dec 10, 2004 at 21:09 UTC ( [id://414047]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Your best bet is to restructure the formulas so the subtraction isn't necessary. This is I believe impossible given that the task rotates around money and spending some quantum of the available. Using integer math is probably a more practical solution. Math::Currency provides a nice transparent implementation that simulates dollars and cents, pounds and pence..... cheers tachyon
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||