• 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: "Mark J. Reed" <email@hidden>
  • Date: Thu, 4 Jun 2009 21:02:01 -0400

Yeah, my mistake.  I was thinking that floor(x) would be parsed as a
function call, instead of just "floor" followed by "(x)"...

On 6/4/09, Stan Cleveland <email@hidden> wrote:
> 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.
>
>
>

--
Sent from my mobile device

Mark J. Reed <email@hidden>
 _______________________________________________
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: "Mark J. Reed" <email@hidden>)
 >Re: Same code gives different answers in 2 different scripts (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Same code gives different answers in 2 different scripts
  • Next by Date: Re: Operator vs. Command precedence
  • Previous by thread: Re: Same code gives different answers in 2 different scripts
  • Next by thread: Re: Operator vs. Command precedence
  • Index(es):
    • Date
    • Thread