Post Reply 
Unary minus precedence preference
07-21-2014, 08:00 PM
Post: #1
Unary minus precedence preference
While symbolic object support in newRPL is getting ready to be released in a new demo, I stumbled upon the unary minus precedence ambiguity:

Excel does: -2^2 = 4
while almost everybody else give -2^2= -4

I implemented it as -2^2=-4 for the time being (just to follow the herd), but are there any good reasons to choose one precedence or the other?

Are there any other ambiguities that I need to be aware of regarding other operators?

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Unary minus precedence preference - Claudio L. - 07-21-2014 08:00 PM

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