my $value = "0.03443762"; $digitprecision = 20; printf STDOUT ("\n%20s\n", $newvalue); #### output 0.03443762