Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Side-by-side number operations in expression throw an error #54

Open
daleyjem opened this issue Feb 28, 2016 · 1 comment
Open

Side-by-side number operations in expression throw an error #54

daleyjem opened this issue Feb 28, 2016 · 1 comment
Assignees
Labels

Comments

@daleyjem
Copy link

var eq = algebra.parse("3 * -8 + x = 1")
...throws Uncaught TypeError: Cannot read property 'toString' of undefined(…)

While var eq = algebra.parse("-24 + x = 1") does not.

Is this a bug, or an expected behavior that an operation can't be performed on 2 side-by-side numbers within an expression?

@ranode
Copy link

ranode commented May 17, 2016

var eq = algebra.parse("-8 * 3 + x = 1") works just fine.. is it just a problem with - followed by *?

@nicolewhite nicolewhite self-assigned this Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants