• 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: Same code gives different answers in 2 different scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Same code gives different answers in 2 different scripts


  • Subject: Re: Same code gives different answers in 2 different scripts
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 05 Jun 2009 10:02:20 +1000
  • Thread-topic: Same code gives different answers in 2 different scripts

On 5/6/09 9:31 AM, "Doug McNutt" <email@hidden> wrote:

> And my biggest problem is Apple's "rounding as taught in school". I was never
> taught anything like that and I really would like to know Apple's rules for
> remainders that are exactly 1/2 of a digit or for negative values.

They're in the ASLG; you can look it up.
>
> If INT(1.5001) comes out as 2 in AppleScript  I would be very surprised - and
> disappointed.

Be prepared to be surprised and disappointed.

--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Same code gives different answers in 2 different scripts (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Same code gives different answers in 2 different scripts
  • Next by Date: Re: Same code gives different answers in 2 different scripts
  • Previous by thread: Re: Same code gives different answers in 2 different scripts
  • Next by thread: Re: Minus-Hyphen, Numeric Negation and Subtraction
  • Index(es):
    • Date
    • Thread