While this works perfectly, this is a bit verbose IMHO. Why not simply:
printf "%.15f" => $x;or even:
printf "%.15f", $x;In reply to Re^2: Printing a very small number
by Laurent_R
in thread Printing a very small number
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |