silentmatt / expr-eval

Mathematical expression evaluator in JavaScript
http://silentmatt.com/javascript-expression-evaluator/
MIT License
1.18k stars 239 forks source link

Number plus negative value #258

Closed AlbCM closed 3 years ago

AlbCM commented 3 years ago

Hello, I need help I'm trying to parse this expression:

Parser().parse('(1*-1)').toString()

And i got this error, any idea ? image