Skip to content

bitor

Bitwise OR of two integers.

v = bitor(a, b)

Returns the integer whose bits are set where either a or b has a set bit.

bitor(12, 10) % 14 (1100 | 1010 = 1110)
  • bitand — Bitwise AND of two integers.
  • bitxor — Bitwise XOR of two integers.