2 points · by oscardelben · 15y ago · 6 comments
I get confused because in a book that I'm studying the author uses -2^2 to indicate 4, which looks correct to me. So who's correct? I'm sure I'm missing something obvious here.
Edit:
My girlfriend (which is not a programmer), says that perhaps the computer is giving precedence to the exponentiation, and then adding the -. So it would be -(2^2).
Edit2:
Thanks for all the answers. It's clear to me now.
Same thing, different acronym. (parentheses, exponents, multiply/divide, add/subtract)