$xor » History » Version 4
Per Amundsen, 02/23/2023 07:58 PM
1 | 2 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$xor(A,B)* |
||
4 | 1 | Per Amundsen | |
5 | Returns A binary "xor":https://en.wikipedia.org/wiki/Exclusive_or B. |
||
6 | |||
7 | 3 | Per Amundsen | _Supports "Big Integers":https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic_ |
8 | |||
9 | 1 | Per Amundsen | *Parameters* |
10 | |||
11 | 4 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | A | The binary value to "xor":https://en.wikipedia.org/wiki/Exclusive_or. | |
||
14 | | B | The binary value to "xor":https://en.wikipedia.org/wiki/Exclusive_or to. | |
||
15 | 1 | Per Amundsen | |
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | ; xor 1110 into 1001. |
||
20 | //echo -ag $xor(1110,1001) |
||
21 | </pre> |