...printf or sprintf in order to get only 3 decimal places...
According to perldoc -f sprintf, do it this way:
printf "$l,$j,%.3f,%.3f,%.3f,%.3f\n", $Hx, $Hy, $Hxy, $mutual;
Cheers, Sören
In reply to Re: use of print f and sprint f
by Happy-the-monk
in thread use of print f and sprint f
by replicant4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |