Why did the designers of Google Sheet choose this operators precedence: -2^2 == (-2)^2 == 4
?
Any reason?
I prefer the following precedence: -2^2 == -(2^2) == -4
.
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityIt is historical.
Google sheets was released decades after other spreadsheet software was available. Google sheets had to get the same answers as other spreadsheet software would, otherwise there would be zero consistency between providers.