in reply to Re: decimal places
in thread decimal places

you could use sprintf:
my $percent = sprintf ("$.2f",100*$amount / $length);
that way the variable $percent contains the rounded result