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: Binary math operations (and, or, etc.)



I believe that by "binary math" Stephen was referring to bitwise operations, as opposed to Boolean operations in the "zero is false" sense.  Many languages have both; for instance in C and derivatives, && is logical AND (in which 1 && 2 == 1 because both 1 and 2 are nonzero and therefore true) while & is bitwise AND (in which 1 & 2 == 0 because 1 and 2 have no 1-bits in common). 

Since these bitwise operations are how math is accomplished in binary, btw, I think calling them "binary math" is perfectly reasonable.


On 6/7/05, Bill Briggs <email@hidden> wrote:
At 9:13 PM -0400 6/7/05, Stephen Jonke wrote:
>Is binary math (meaning OR, XOR, AND, etc) built in to Applescript?

  You can certainly do logical operations in AppleScript (OR, AND,
etc.), but that is not binary math. Binary math would be

  1001
+0110
-----
  1111

for example.

>  Not logical, mathematical.

  I don't know what you mean by this.

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

This email sent to email@hidden



--
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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Binary math operations (and, or, etc.) (From: Stephen Jonke <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.