Project

General

Profile

$xor » History » Version 3

Per Amundsen, 09/09/2020 10:03 AM

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
A - The binary value to "xor":https://en.wikipedia.org/wiki/Exclusive_or.
12
B - The binary value to "xor":https://en.wikipedia.org/wiki/Exclusive_or to.
13
14
*Example*
15
16
<pre>
17
; xor 1110 into 1001.
18
//echo -ag $xor(1110,1001)
19
</pre>