Re: [Perl-unix-users] Formatting problem

2002-05-06 Thread $Bill Luebkert
karthikeyan wrote: > Dear All, > > > > Here is my problem. > > > > $price = "19.99"; > > $special_offer = "59.40"; > > $period = "10"; > > $temp = $period * $price; > $temp = $temp - $price; > $temp = $temp + $special_offer; > $hosting_price = $temp; > > > > > >

[Perl-unix-users] Formatting problem

2002-05-06 Thread karthikeyan
Dear All,     Here is my problem.     $price = "19.99";   $special_offer = "59.40";   $period = "10";   $temp = $period * $price;  $temp = $temp - $price;  $temp = $temp + $special_offer;  $hosting_price = $temp;       Here $hosting_price displays 239.31 which is fine.     But when $period is