(-) precedence
|
12-22-2022, 09:17 PM
Post: #59
|
|||
|
|||
RE: (-) precedence
As operators, unary + and - are unusual because they can undergo precedence inversion when required for an expression to make sense. Let's assume unary + and - have precedence between multiplication and exponentiation. Then in 2^-2^2, the - has lower precedence than the ^ to the right, but higher precedence than the ^ to the left (otherwise the expression wouldn't make sense), producing 2^(-(2^2)).
— Ian Abbott |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)