![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Dividing and formatby edan (Curate) |
on Nov 27, 2003 at 14:14 UTC ( #310540=note: print w/replies, xml ) | Need Help?? |
Normally, intermediate calculations are done without rounding, to gain maximum accuracy - you round at the end for display purposes. If for some reason you actually need to round the number for intermediate calculations, then you use sprintf.
In Section
Seekers of Perl Wisdom
|
|