I have a variable containing:
40 * ($plvl^2)) + (360 * $plvl);
Where $plvl equals 2. According to wolfram and google the correct result is supposed to be 880 but the PHP function returns 720.
Does anyone know why they return different values and how do I correct it to result in 880?
just inverts the second-lowest bit of plvl (
^is the bitwise XOR). You wantpow: