Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
No such thing as a small change
 
PerlMonks  

Re: How to give format to numbers?

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.