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

I don't need to display the result, I first want to store the result, do some calculations with it and than display another result.

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

    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.