Can't seem to find a definition anywhere.
Typing into the console I can see...
  5^4 = 1
  5^3 = 6
  5^2 = 7
Any ideas why?
Can't seem to find a definition anywhere.
Typing into the console I can see...
  5^4 = 1
  5^3 = 6
  5^2 = 7
Any ideas why?
 
    
    It's a bitwise operation, ^ specifically does a XOR operation on the numbers.
XOR truth table
+-------------------+
|  a  |  b  | a ^ b |
+-------------------+
|  0  |  0  |   0   |
|  0  |  1  |   1   |
|  1  |  0  |   1   |
|  1  |  1  |   0   |
+-------------------+
00001001 -> 5
00001000 -> 4
--------
00000001 -> 1
00001001 -> 5
00000011 -> 3
--------
00001010 -> 6
00001001 -> 5
00000010 -> 2
--------
00001011 -> 7
 
    
    