You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2019. It is now read-only.
What version are you on? When I try this in the browser console at http://algebra.js.org/ it gets parsed and evaluated to "9" - which is not the correct evaluation but also not the Syntax Error you get.
Any workaround for this issue?
The workaround would be to wrap the negative number in brackets: algebra.parse('12 - (- 3)');
This:
algebrea.parse('12 -- 3');
Results in an error:
SyntaxError: Missing operand
After trying some other stuff, it appears it just can't handle negative signs after the operator. E.g. this also fails:
algebra.parse('-1 * -5');
The text was updated successfully, but these errors were encountered: