Re: Binary math operations (and, or, etc.)
Re: Binary math operations (and, or, etc.)
- Subject: Re: Binary math operations (and, or, etc.)
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 8 Jun 2005 10:53:59 -0400
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.
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:
This email sent to email@hidden