When given two boolean arguments, the ^ operator performs exclusive or, e.g.
true ^ true == false
true ^ false == true
false ^ true == true
false ^ false == false
When given two numeric arguments, it does something, but I've no idea what. At first I thought it was modular division because
(5 ^ 5) == 0
However
(10 ^ 4) == 14
So it's not modular division, is it some kind of bit-shifting?