If it were by design, what would be the calculation order rule? It calculates 2*2^2+2 so that + has higher precedence than *. On the other hand, it calculates 2*2²+2, 2+2*2^2 and 2*2+2 so that * has higher precedence than +. This is a bug.
If it were by design, what would be the calculation order rule?
It calculates 2*2^2+2 so that + has higher precedence than *.
On the other hand, it calculates 2*2²+2, 2+2*2^2 and 2*2+2 so that * has higher precedence than +.
This is a bug.