Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Dividing and format

by edan (Curate)
on Nov 27, 2003 at 14:14 UTC ( #310540=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Dividing and format
in thread Dividing and format

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.

--
3dan

Replies are listed 'Best First'.
Re: Re: Re: Re: Dividing and format
by hotshot (Prior) on Nov 27, 2003 at 14:45 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-06-07 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?