![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Perl rounder...by maverick (Curate) |
on Apr 08, 2002 at 22:21 UTC ( #157587=note: print w/replies, xml ) | Need Help?? |
Sorry dude, it's already been done.
printf takes a sting that describes what you want to print. In your case a floating point number (f) with a precision that you specify as the second arg ($ARGV[1]) using the value in $ARGV[0]
/\/\averick
In Section
Snippets Section
|
|