Closed baldingwizard closed 5 years ago
Spotted the problem - fix on the way.
Amended expression parsing to process from the end of the expression for +,-,*,/ operations. This means that the implied sequence matches the required precedence for '/' and '-' operations. eg, '5/a/b/c' becomes '((5/a)/b)/c' instead of '5/(a/(b/c))' (which would be wrong).
Spotted a problem with the mathematical precedence of * and / and + and -. For now can work around it by adding brackets to explicitly specify the correct precedence.