go ahead... be a heretic 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("%.\$ARGV[1]f\n",\$ARGV[0]);
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
OmG! They killed tilly! You *bleep*!!

Comment on Re: Perl rounder...
Replies are listed 'Best First'.
Re: Re: Perl rounder...
by abaxaba (Hermit) on Apr 09, 2002 at 01:09 UTC

Create A New User
Node Status?
node history
Node Type: note [id://157587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-05-05 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
What font do you use for programming?

Results (99 votes). Check out past polls.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8873680233955383, "perplexity": 20749.56113899316}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-18/segments/1461860127496.74/warc/CC-MAIN-20160428161527-00170-ip-10-239-7-51.ec2.internal.warc.gz"}