Re: Same code gives different answers in 2 different scripts
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