Browse docsmath.bit_xor
On this page
API method

math.bit_xor

Bitwise XOR of two values as unsigned 32-bit integers.

Syntax

Atlas Script
math.bit_xor(value, operand)

Parameters

value
Value written, converted, or evaluated by this method. Its required type and range are described in Remarks.
operand
Second operand of the bitwise operation, treated as an unsigned 32-bit integer.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Bitwise XOR of two values as unsigned 32-bit integers. Each value is truncated toward zero and wrapped, so -1 is 0xFFFFFFFF.

Examples

Usage pattern
// Replace value, operand with values described above.
math.bit_xor(value, operand);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.