Berserk Docs
Scalar FunctionsMath Functions

binary_and

Return the bitwise AND of two 64-bit integers.

The result is a long; a null argument gives null.

Aliases: band

Syntax

binary_and(value1, value2)

Parameters

Prop

Type

Returns: long

Examples

Example 1

print binary_and(12, 10), binary_and(int(255), 15), binary_and(5, long(null))
print_0 (long)print_1 (long)print_2 (long)
815null

On this page