BitOr

BitOr[n1,n2,]

gives the bitwise OR of the integers ni.

Details

  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • BitOr[n1,n2,] yields the integer whose binary bit representation has ones at positions where the binary bit representations of any of the ni have ones.
  • For negative integers BitOr assumes a two's complement representation.
  • BitOr automatically threads over lists.

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Generalizations & Extensions  (2)

Applications  (2)

Properties & Relations  (2)

Neat Examples  (1)

See Also

BitAnd  BitXor  BitNot  BitSet  Or  IntegerDigits  CellularAutomaton

Tutorials

Introduced in 1999
(4.0)