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;In reply to Re: how to printf a matrix like this
by RichardK
in thread how to printf a matrix like this
by madM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |