BitAnd
Performs a bitwise logical AND operation.
Method Signature
Arguments
Argument
Type
Required
Description
Default
number1
integer
true
Numeric value for bitwise AND.
number2
integer
true
Numeric value for bitwise AND.
Examples
Calculate bitwise logical AND
Uses the bitAnd function to perform the logical AND operation on each pair of the corresponding bits, by multiplying them
Result: 1
Additional Examples
Related
Last updated
Was this helpful?