bitAnd

Performs a bitwise logical AND operation.

bitAnd(number1, number2) → returns numeric

Argument Reference

number1 numeric
Required

Integer

number2 numeric
Required

Integer

Examples
Sample code invoking the bitAnd function

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

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub