Re: Rounding real numbers
Re: Rounding real numbers
- Subject: Re: Rounding real numbers
- From: Michelle Steiner <email@hidden>
- Date: Sun, 28 Jan 2001 17:44:13 -0800
On 1/28/01 1:32 PM, giZm0 <email@hidden> wrote:
>
Now, when i dialog this number it contains about 10 numbers after the point
>
(.). For example : 6.022548445
>
While i know this is normal, i would like to round this number to two
>
decimals only (6.02). Does anyone knows an easy way to do this ?
set x to 6.022548445
(round (x * 100)) / 100
--> 6.02
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------