BITOR
Syntax
BITOR(</wiki/spaces/DAS60/pages/4620163738>, </wiki/spaces/DAS60/pages/4620163738>; ...)
Description
Bitwise OR operation on given integer arguments. The function converts the integers to binary and returns 1 in each bit position where any input arguments have a one in the corresponding position and zero in all others.
This function supports more than 255 arguments.
Examples
Column1 | Column2 | Column3 | BITAND() returns |
---|---|---|---|
Example 1 | |||
2 | 3 | 6 | 7 |
(0010) | (0011) | (0110) | = 0111 |
Example 2 | |||
4 | 8 | 12 | 12 |
(0100) | (1000) | (1100) | = 1100 |
Example 3 | |||
23 | 8 | 109 | 127 |
(0010111) | (0111101) | (1101101) | = 1111111 |