Closed rwmorton closed 7 months ago
The precedence of operators and how they should be interpreted is a matter of convention. There is no "right" or "wrong" way.
That said, the convention that the Compute Engine uses by default is that division operators, such as /
are left-associative. Unfortunately, due to a bug, the associativity of operators was not applied correctly. This has now been fixed.
I believe this is a bug. Evaluating the expression
9/6/3
should be0.5
. When you paste that into the demo on the compute engine page it spits out4.5
. The problem is that each/
symbol appears to be inserting a fraction but it should really be evaluated as an operator in the order in which they appear. Hope that makes sense?