Skip to content
Reference > Methods

bitAnd(a,b)

Definition

Number bitAnd(Number a, Number b)

Description

Returns the bitwise AND (&) of two numbers.

Parameter Definition

Name Type Description
a Number param1
b Number param2

Examples

1
2
3
Integer r1 = bitAnd(5,8); // r1 == 0
Integer r2 = bitAnd(13,22); // r2 == 4
Object r3 = bitAnd(null,17); // r3 == null