Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Order of operations
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Unary minus sign=== There are differing conventions concerning the [[unary operation]] {{nowrap|'β'}} (usually pronounced "minus"). In written or printed mathematics, the expression β3<sup>2</sup> is interpreted to mean {{nowrap|β(3<sup>2</sup>) {{=}} β9}}.{{r|BS}}{{r|ARGS}} In some applications and programming languages, notably [[Microsoft Excel]], [[PlanMaker]] (and other spreadsheet applications) and [[bc programming language|the programming language bc]], unary operations have a higher priority than binary operations, that is, the unary minus has higher precedence than exponentiation, so in those languages β3<sup>2</sup> will be interpreted as {{nowrap|(β3)<sup>2</sup> {{=}} 9}}.{{r|Microsoft 2005}} This does not apply to the binary minus {{nowrap|operation 'β';}} for example in Microsoft Excel while the formulas <code>=-2^2</code>, <code>=(-2)^2</code> and <code>=0+-2^2</code> return 4, the formulas <code>=0-2^2</code> and <code>=-(2^2)</code> return β4.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)