Unary minus precedence preference
|
07-24-2014, 07:31 AM
Post: #22
|
|||
|
|||
RE: Unary minus precedence preference
(07-23-2014 08:27 PM)Wes Loewer Wrote: Well, except for that pesky Excel again. It evaluates 2^3^2 to be 64 instead of 512. In fact, the only spreadsheets that I've found so far that give 512 are Google Sheets and Gnumeric on Linux. Gnumeric is even kind enough to automatically insert parentheses to explicitly show 2^(3^2) as well as (-2)^2. So, a few spreadsheets do -2^2 correctly and a few do 2^3^2 correctly, but I'm not aware of any spreadsheets that do both of these operations correctly. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)