Try this
perl -E 'printf("%12.4f\n",12.34)'gives
> 12.3400
see the docs for sprintf for much more detail :) but in brief it's "%<length>.<dp>f"
In reply to Re^2: Using (s)printf()
by RichardK
in thread Using (s)printf()
by reptile
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |