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...
In reply to Re^3: Help with a calculation
by john_oshea
in thread Help with a calculation
by hjaber
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |