Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abs bug?



On 11/29/03 9:04 AM, "Robert Poland" <email@hidden> wrote:

>> On Nov 29, 2003, at 9:25 AM, Robert Poland wrote:
>>
>>> Is this a bug? From Satimage Dictionary.
>>>
>>> set x to -44
>>> abs x
>>> x
>>> --> -44
>>
>> Robert,
>>
>> Try
>> set x to -44
>> set x to abs x
>> x
>>
>> that should reveal 44 as the answer. Also, if you removed the last
>> line (x) of your code, it should display 44.
>>
>>
>> --
>> Chris Garaffa
>> email@hidden
>
>
> Thanks Chris,
>
> After I thought about it it was obvious. Should have realized that
> the dictionary was misleading me.

How was the dictionary misleading you? It's just standard AppleScript (or
any language) logic, which you were getting wrong. What did the dictionary
have to do with it?

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: abs bug? (From: Robert Poland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.