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?? |
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
|
|