• 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: Stan Cleveland <email@hidden>
  • Date: Thu, 04 Jun 2009 17:58:16 -0700
  • Thread-topic: Same code gives different answers in 2 different scripts

On 6/4/09 5:22 PM, "Mark J. Reed" wrote:

> But this I don't get:
>
> floor(1.5001) as integer ==> 2.0
>
> I don't know how that can parse as "floor(1.5001 as integer)" with the
> parens where they are.
>
> ?!?

Mark, the 'floor' command comes from the "Satimage.osax" scripting ddition.
It makes sense to me that AppleScript's own built-in operations would rank
higher in precedence than would an operation defined elsewhere.

Stan C.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Same code gives different answers in 2 different scripts
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Same code gives different answers in 2 different scripts (From: "Mark J. Reed" <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: Same code gives different answers in 2 different scripts
  • Index(es):
    • Date
    • Thread