my $string = sprintf( "%.*f", $p, $number ); [download]
In reply to Re^8: help with sprintf by graff in thread help with sprintf by lil_v