• 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: Highlights of AppleScript 1.5.5 in Mac OS 9.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1


  • Subject: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • From: Timothy Bates <email@hidden>
  • Date: Thu, 11 Jan 2001 13:19:36 +1100

On 1/10/01 10:55 AM, "Nigel Garvey" <email@hidden> wrote:

> Chris Espinosa wrote on Tue, 09 Jan 2001 14:43:14 -0800:
>
>> ROUND LIKE TAUGHT IN SCHOOL
>
> Urghh! That's even worse than the promised 'as taught in school'! Is that
> "International English", perhaps?
>
> If it's as fast as the current 'round', it'll still be seventeen times
> quicker to use a handler:
On a plain Jane B&W G3 350, I get:


***********start script ********

set start1 to current date

repeat with n from 1 to 500
round 122.5
end repeat

set end1 to current date


set start2 to current date

repeat with n from 1 to 500
rndIEEE(122.5)
end repeat

set end2 to current date

set time1 to end1 - start1
set time2 to end2 - start2

return {time1, time2}
-->{9,0}

on rndIEEE(n)
if (n mod 2) ^ 2 > 0.25 then return n div 0.5 - n div 1
n div 1
end rndIEEE


***********end script ********


References: 
 >Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1 (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Next by Date: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Previous by thread: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Next by thread: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Index(es):
    • Date
    • Thread