Bitwise Operators

Use the bitwise operators to modify the individual bits rather than the number.

  • & (bitwise AND)
  • | (bitwise inclusive OR)
  • ^ (bitwise exclusive OR)
  • << (bitwise shift right)
  • >> (bitwise shift left)
  • bnot (inverts an integer's bits)
  • not (inverts TRUE/FALSE expressions)
  • neg (negates integers)