Perl: the Markov chain saw | |
PerlMonks |
Re^2: numeric values acting funnyby tachyon (Chancellor) |
on Dec 11, 2004 at 02:09 UTC ( [id://414047]=note: print w/replies, xml ) | Need Help?? |
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
|
|