Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Help with a calculation

by john_oshea (Priest)
on Feb 04, 2006 at 14:02 UTC ( [id://527944]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Help with a calculation
in thread Help with a calculation

In this line:

$sales = sprintf "\$%.2f", param('Sales');

your $sales variable will end up containing a dollar sign plus whatever value comes from the 'Sales' parameter. Perl will treat this as a string, not a number...

Replies are listed 'Best First'.
Re^4: Help with a calculation
by hjaber (Initiate) on Feb 04, 2006 at 16:52 UTC
    That makes sense now, thank you for your help. I made the changes and now everything is working great. Thanks again for your help! Hatem Jaber

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2024-04-18 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found