Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: limiting decimal points

by Loops (Hermit)
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);


Comment on Re: limiting decimal points
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-07-13 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls