Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: numeric values acting funny

by tachyon (Chancellor)
on Dec 11, 2004 at 02:09 UTC ( #414047=note: print w/ replies, xml ) Need Help??


in reply to Re: numeric values acting funny
in thread numeric values acting funny

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


Comment on Re^2: numeric values acting funny

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://414047]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-07-31 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls