BitAnd[n1, n2, ...]
gives the bitwise AND of the integers .


  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • BitAnd[n1, n2, ...] yields the integer whose binary bit representation has ones at positions where the binary bit representations of all of the have ones.
  • For negative integers BitAnd assumes a two's complement representation.
  • BitAnd automatically threads over lists.
New in 4
New to Mathematica? Find your learning path »
Have a question? Ask support »