bitAnd

Performs a bitwise logical AND operation.

bitAnd(number1, number2) → returns Numeric

Argument Reference for the bitAnd function

number1

Required: Yes
Integer

number2

Required: Yes
Integer

Examples sample code invoking the bitAnd function


Calculate bitwise logical AND

Uses the bitAnd function to perform the logical AND operation on each pair of the corresponding bits, by multiplying them

bitAnd(5,3)

Expected Result: 1


Fork me on GitHub