Bit Operations

Function

Description

uBitAnd

Bitwise AND operation

uBitOr

Bitwise OR operation

uBitXOr

Bitwise Exclusive OR operation

uBitNot

Bitwise Not operation




uBitAnd

Description

Bitwise AND operation

Syntax

number uBitAnd(value, ...)

Parameters

number value

A list of numeric arguments

Examples

Example 1

uBitAnd(10, 3) // returns "2"



uBitOr

Description

Bitwise OR operation

Syntax

number uBitOr(value, ...)

Parameters

number value

A list of numeric arguments

Examples

Example 1

uBitOr(10, 3) // returns "11"



uBitXOr

Description

Bitwise Exclusive OR operation

Syntax

number uBitXOr(value1 , value2)

Parameters

number value1, value2

Values to calculate

Examples

Example 1

uBitXOr(10, 3) // returns "9"



uBitNot

Description

Bitwise Not operation

Syntax

number uBitNot(value)

Parameters

number value

A numeric argument

Examples

Example 1

uBitNot(10) // returns "-11"