Bit functions




uBitAnd

Description

Calculates the bitwise AND over all parameters given and returns the result.

Syntax

number uBitAnd(value, ...)

Parameters

numeric value

A list of numeric arguments.

Examples

Example 1

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



uBitOr

Description

Calculates the bitwise OR over all parameters given and returns the result.

Syntax

number uBitOr(value, ...)

Parameters

numeric value

A list of numeric arguments.

Examples

Example 1

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



uBitXOr

Description

Calculates the bitwise Exclusive OR over all parameters given and returns the result.

Syntax

number uBitXOr(value, ...)

Parameters

numeric value

A list of numeric arguments.

Examples

Example 1

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



uBitNot

Description

Calculates the bitwise NOT over all parameters given and returns the result.

Syntax

number uBitNot(value, ...);

Parameters

numeric value

A list of numeric arguments.

Examples

Example 1

uBitNot(10) // returns "-11"