Re: D&D
Order of operations - Wikipedia, the free encyclopedia
So which is it?
Order of operations - Wikipedia, the free encyclopedia
There exist differing conventions concerning the unary operator − (usually read "minus"). In written or printed mathematics, the expression −3² is interpreted to mean −(3²) = −9, but in some applications and programming languages, notably the application Microsoft Office Excel and the programming language bc, unary operators have a higher priority than binary operators, that is, the unary minus (negation) has higher precedence than exponentiation, so in those languages −3² will be interpreted as (−3)² = 9. In cases where there is the possibility that the notation might be misinterpreted, parentheses are usually used to clarify the intended meaning.
Comment