• 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: Nigel Garvey <email@hidden>
  • Date: Wed, 10 Jan 2001 23:50:49 +0000

"Arthur J Knapp" wrote on Wed, 10 Jan 2001 10:52:35 -0500:

>>>ROUND LIKE TAUGHT IN SCHOOL
>>
>> Urghh! That's even worse than the promised 'as taught in school'! Is that
>> "International English", perhaps?
>
> No, it's American, the update to English. ;-)

It seems to have a few bugs in it. ;-) But like... er... as Ed has
pointed out and as Chris Nebel has told me off list, the new parameter
*is* actually 'as taught in school'. So it's only as bad as that. There's
probably no truth in the rumour that 'like tawt 'n skuwul' is an
acceptable synonym. ;-)

>> rnd(122.5)
>> --> 123
>>
>> rndIEEE(122.5)
>> --> 122
>
> Wow, these are great.

Thanks! :-)

>I wish I could get a handle on exactly what
>the IEEE standard is trying to accomplish, (I'm pretty thick when
>it comes to math). :)

Well, if you're constrained (or stupid enough) to perform several
roundings off in a single line of calculation in a high level language,
then always rounding .5 away from zero stands a chance of introducing a
cumulative error into the proceedings - whereas if you instead round .5
towards the nearest even integer, and are lucky enough to have exactly
the same number of even.5's as odd.5's, and that this pertains for both
positives and negatives, then the rounding off will go towards zero as
many times as it goes away and the error will be eliminated.

>> NG
>
>and "NG" shall be our battle cry...

Shouldn't that be on the other list? ;-)

NG


  • Prev by Date: Re: [OT] iTunes (was AppleScript 1.5.5)
  • Next by Date: Re: I successfully converted a stand-alone script into an extension!
  • Previous by thread: Apple event timed out
  • Next by thread: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Index(es):
    • Date
    • Thread