This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


gives the bitwise OR of the integers .
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • BitOr yields the integer whose binary bit representation has ones at positions where the binary bit representations of any of the have ones.
  • For negative integers BitOr assumes a two's complement representation.
  • BitOr automatically threads over lists.
Click for copyable input
Click for copyable input
Use numbers of any size:
BitOr takes any number of arguments:
Use negative numbers:
Basic symbolic simplifications are done automatically:
corresponds to having all bits on:
Make a nested pattern:
Truth table for Or:
New in 4