Perl: the Markov chain saw | |
PerlMonks |
Re^2: Using (s)printf()by RichardK (Parson) |
on Aug 31, 2016 at 18:03 UTC ( [id://1170912]=note: print w/replies, xml ) | Need Help?? |
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 Section
Tutorials
|
|