Yeah use POW(), ^ is used for bitwise operations in nearly every programming language now a days I think its bitwise XOR