• 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 integers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rounding integers


  • Subject: Re: rounding integers
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 31 Oct 2003 10:31:31 -0700

At 10:37 -0600 10/31/03, Steve Mills wrote:
>set n to ((pi * 100) as integer) / 100

set n to ( ( (pi * 100) + 0.5 ) as integer) / 100

if you want to round from the mid point.
--

--> Halloween == Oct 31 == Dec 25 == Christmas <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >rounding integers (From: Chet Goetz <email@hidden>)
 >Re: rounding integers (From: Steve Mills <email@hidden>)

  • Prev by Date: F5 key
  • Next by Date: Re: rounding integers
  • Previous by thread: Re: rounding integers
  • Next by thread: Re: rounding integers
  • Index(es):
    • Date
    • Thread