BITOR
Returns a bitwise OR of 2 numbers.
EngineeringEngineering & Science
What it does
Performs a bitwise OR operation. The result has bits set to 1 if either of the input numbers has that bit set to 1.
Syntax
BITOR(number1, number2)
Arguments
number1(number) β First integer.number2(number) β Second integer.
Examples
Bitwise OR
Combine 23 (10111) and 10 (01010).
FORMULA
=BITOR(23, 10)
RESULT
31
SAMPLE DATA
| A | B | |
|---|---|---|
| 1 | Val1 | Val2 |
| 2 | 23 | 10 |