http://www.perlmonks.org?node_id=1049762


in reply to Re: Printing a very small number
in thread Printing a very small number

print sprintf "%.15f" => $x;

While this works perfectly, this is a bit verbose IMHO. Why not simply:

printf "%.15f" => $x;

or even:

printf "%.15f", $x;