Re: Number Truncation/Rounding

2002-02-13 Thread Brett W. McCoy
On Wed, 13 Feb 2002, Balint, Jess wrote: > Hello all. I have a script that uses alot of data and calculates a > cumulative percent of this data. That cumulative percent should be 100.00 at > the end. What I get is: > > 99.8 > > I need to truncate this to 2 decimal places and hopefully

Re: Number Truncation/Rounding

2002-02-13 Thread Michael Fowler
On Wed, Feb 13, 2002 at 01:21:07PM -0500, Balint, Jess wrote: > Hello all. I have a script that uses alot of data and calculates a > cumulative percent of this data. That cumulative percent should be 100.00 at > the end. What I get is: > > 99.8 > > I need to truncate this to 2 decima

Re: Number Truncation/Rounding

2002-02-13 Thread Jonathan E. Paton
--- "Balint, Jess" <[EMAIL PROTECTED]> wrote: > Hello all. I have a script that uses alot of data and > calculates a cumulative percent of this data. That > cumulative percent should be 100.00 at the end. What I > get is: > > 99.8 > > I need to truncate this to 2 decimal places and

Number Truncation/Rounding

2002-02-13 Thread Balint, Jess
Hello all. I have a script that uses alot of data and calculates a cumulative percent of this data. That cumulative percent should be 100.00 at the end. What I get is: 99.8 I need to truncate this to 2 decimal places and hopefully round it to 100.00. Thanks in advance. --Jess -- T