|
|
| 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.
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||