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 |