(-) precedence
|
12-08-2022, 10:02 PM
Post: #20
|
|||
|
|||
RE: (-) precedence
(12-08-2022 09:21 PM)Thomas Okken Wrote: Unary minus should have the same precedence as binary minus, that's the way it works in standard mathematical notation. Another way of understanding it is that -x is shorthand for 0-x. So, if I understand you correctly, X*X first, then change sign. That makes sense to me since MDAS (since multiplication has higher precedence. Next, so I understand correctly, every time I see a unary minus, if the next operator is higher in precedence *, /, y^x, etc.), do that and then change sign. Right? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)