BITOR Function

The BITOR function is one of the engineering functions. It is used to return a bitwise 'OR' of two numbers.

Syntax

BITOR(number1, number2)

The BITOR function has the following arguments:

ArgumentDescription
number1A numeric value in decimal form greater than or equal to 0.
number2A numeric value in decimal form greater than or equal to 0.
Notes

The value of each bit position is counted if either of the parameters has 1 at that position.

How to apply the BITOR function.

Examples

The figure below displays the result returned by the BITOR function.

BITOR Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags