binary_xor()
Returns a result of the bitwise xor
operation of the two values.
Syntax
binary_xor(
value1,
value2)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
value1 | int |
✔️ | The left-side value of the XOR operation. |
value2 | int |
✔️ | The right-side value of the XOR operation. |
Returns
Returns logical XOR operation on a pair of numbers: value1 ^ value2.
Examples
binary_xor(1,1)
Output
Result |
---|
0 |
binary_xor(1,2)
Output
Result |
---|
3 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for