• 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: Binary math operations (and, or, etc.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Binary math operations (and, or, etc.)
      • From: Bill Briggs <email@hidden>
    • Re: Binary math operations (and, or, etc.)
      • From: Stephen Jonke <email@hidden>
References: 
 >Binary math operations (and, or, etc.) (From: Stephen Jonke <email@hidden>)

  • Prev by Date: Folder action in download folder...
  • Next by Date: Re: Binary math operations (and, or, etc.)
  • Previous by thread: Re: Binary math operations (and, or, etc.)
  • Next by thread: Re: Binary math operations (and, or, etc.)
  • Index(es):
    • Date
    • Thread