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:

Argument Description
number1 A numeric value in decimal form greater than or equal to 0.
number2 A 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