TRUECALC
Functions

BITOR

Bitwise OR of two integers

Try it

When to use it

When should I use BITOR?

Use BITOR to combine two integers by setting every bit that is set in either operand, commonly used to merge permission flags or feature bitmasks.

Used in

engineering · science

Syntax

BITOR(number1, number2)

Examples

=BITOR(9,5) // => 13
=BITOR(8,1) // => 9
=BITOR(12,12) // => 12

On this page