• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rounding real numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Maybe not the Finder, but a 'wait for FMP' problem [WAS: Re: R23's Osaxen Rant]
  • Next by Date: Re: line breaking and indenting
  • Previous by thread: Rounding real numbers
  • Next by thread: Re: Rounding real numbers
  • Index(es):
    • Date
    • Thread