BITAND Function

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

Syntax

BITAND(number1, number2)

The BITAND 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 only if both parameter's bits at that position are 1.

How to apply the BITAND function.

Examples

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

BITAND Function

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

Article with the tag:
Browse all tags