For the complete documentation index, see llms.txt. This page is also available as Markdown.

BitAnd

Performs a bitwise logical AND operation.

Method Signature

BitAnd(number1=[long], number2=[long])

Arguments

Argument
Type
Required
Description
Default

number1

long

true

Numeric value for bitwise AND.

number2

long

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

Run Example

bitAnd( 5, 3 );

Result: 1

Additional Examples

Run Example

Last updated

Was this helpful?