Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: limiting decimal points

by Loops (Curate)
on Jul 17, 2013 at 04:59 UTC ( #1044717=note: print w/replies, xml ) Need Help??


in reply to limiting decimal points

You can use printf

printf("%0.4f ", $_) for (.0069874, .0012365, .98752115, .0002332);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044717]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2016-12-11 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.