my $price = 240; $price = sprintf "%.2f", $price; print $price; [download]
240.00 [download]
In reply to Re: significant digits in computations by btrott in thread significant digits in computations by daemonchild