I'm writing a CGI scripts that does some minor math calcuations. There is a constant declared in the script as
my $price = 7.00;
and then multiplied with a quantity that is pulled out of a database and assigned to the variable $weeks.
The problem is when I display the product of these two numbers it isn't a decimal value. I am trying to display them in table. The correct values always appear but no '.00'. Can someone please help?
Thanks.
Cheryl
my $price = 7.00;
and then multiplied with a quantity that is pulled out of a database and assigned to the variable $weeks.
The problem is when I display the product of these two numbers it isn't a decimal value. I am trying to display them in table. The correct values always appear but no '.00'. Can someone please help?
Thanks.
Cheryl