Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to give format to numbers?

by Asim (Hermit)
on Jun 22, 2006 at 15:02 UTC ( [id://556918]=note: print w/replies, xml ) Need Help??


in reply to How to give format to numbers?

format any of these formats of numbers to a decimal with two places (#.00)

printf and it's good friend sprintf were born to do your bidding along these lines, my friend. I'd recommend a good, long look at perlfaq4; it touches upon this issue, as well as your rounding problems.

Good luck!

Edited for quick grammar cleanup...

----Asim, known to some as Woodrow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2025-01-13 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (28 votes). Check out past polls.