Post Reply 
Unary minus precedence preference
07-23-2014, 10:10 PM
Post: #20
RE: Unary minus precedence preference
This really comes down to precedence and associations. Part of the reason that 0-2^2 "feels like" -4 is that our minds bind the - as a subtraction (which it is, it's not unary!)

The conflict is that unary - , to be truly unary, has to bind as or higher than parentheses; -2^2 has to become (-2)^2.

So there is no unary -, it's just a writing convention of deleting the 0.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Unary minus precedence preference - htom trites - 07-23-2014 10:10 PM



User(s) browsing this thread: 1 Guest(s)