in reply to how to printf a matrix like this
The explanation of how to use printf formatting is in the help for sprintf. (the printf help really should point to this too).
To fix your problem you need to set a minimum width, try something like this :-
printf "%6.1f",$var;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to printf a matrix like this
by kcott (Archbishop) on Feb 12, 2014 at 09:22 UTC | |
|
Re^2: how to printf a matrix like this
by madM (Beadle) on Feb 11, 2014 at 12:12 UTC |