$a = 1.2; $b = 123456 ; printf "%${a}f", $b ; # instead of printf "%1.2f", $b ;
In reply to Re: printf with variable display width
by lukeyboy1
in thread printf with variable display width
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |