cfdocs

bitAnd

Performs a bitwise logical AND operation.

bitAnd(number1, number2)
returns numeric

Argument Reference

Name Type Required Default Description
number1 numeric Yes   Integer
number2 numeric Yes   Integer

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