and

Bitwise AND.

Returns a 1 in each bit position for which the corresponding bits of both arguments are 1s.

Syntax

and[x, y]

Parameters

x Number on which the function performs bitwise operation.
y Number on which the function performs bitwise operation.
Return Value Bitwise AND value.

Examples

#<result> = and[1, 2]

result: 0

See also

not, or, xor, nand, nor, xnor