pvdb
1
P123,
I just found out that the associativity of the division and/or multiplication operators is wrong. See this screen: https://www.portfolio123.com/app/screen/summary/154198?mt=1
100 / 10 * 2 evaluates to 5 instead of 20, because it’s interpreted as 100 / (10 * 2) instead of (100 / 10) * 2.
Thanks,
Peter
Again, thanks. This is the stuff that scares the Ba-jezuz out of me.
egable
3
This is exactly why I always put parens around my math so it evaluates exactly the way I want and I don’t have to rely on associativity rules.
marco
4
Yea, it’s a known issue with our in-house parser and equal precedence operators: it should go from left to right. When in doubt use parens.