Skip to main content



Bitwise

OperatorCompatible typesDescription
&IntegerPerforms a bitwise 'and' operation and returns the result: ** ** var x = 4 & 2;
****Integer
^IntegerPerforms a bitwise 'xor' operation and returns the result:var x = 4 ^ 1;
**<IntegerShifts the lhs value by rhs bits to the left, and returns the result: ** ** var x = 9 << 2;
>>IntegerShifts the lhs value by rhs bits to the right, and returns the result: ** ** var x = 8 >> 3;