Sure:
my $foo = 0.30; my $bar = sprintf "%2.2i%%", $foo * 100; [download]
In reply to Re: percentage and sprintf by hippo in thread percentage and sprintf by Anonymous Monk