expr-eval
expr-eval copied to clipboard
Mathematical expression evaluator in JavaScript
I'm trying to develop my project using expr-eval locally and have put it into a [GitHub repository](https://github.com/DragonOsman/javascript-calculator-project) as well. I'm getting an error saying that `exprEval` is undefined. I tried...
As documented, the `toString` method of an expression surrounds every sub-expression with parentheses. For pretty printing, it would be good to have a `pretty` option in the `toString` method, putting...
How can we covert the radian to degree data for all trigonometric function
The exponential operator used with Parser is ^; however, javascript exponential operator is **. **Is there a way for Parser to accept ** as exponential operator?** ``` //Standard JavaScript exponential...
eg: ```js const expr = Parser.parse('text != null') expr.evaluate({text:null}) ``` this will throw error
```typescript import {Parser} from 'expr-eval' const res = Parser.evaluate('3+2 * 5 ** power', { power: 2 }) console.log(res) ``` I've trying to implement expr-eval into my project today, which is...
1) len function added. Inspiration is from MS Excel [LEN function](https://support.office.com/en-us/article/LEN-LENB-functions-29236f94-cedc-429d-affd-b5e33d2c67cb). 2) round takes a second parameter the same as MS Excel's [ROUND](https://support.office.com/en-us/article/ROUND-function-c018c5d8-40fb-4053-90b1-b3e7f61a213c) function does. Implementation was inspired by [Decimal...
Expression has a tokens property available that has not been added to the TypeScript definitions. Is that property intended to be private, or should it be added to the definition?
I really like this package but the only thing that kind of bothers me is lengthy operators: `and`, `or`, `...` . I'm using this package to to write conditional expressions...
Is there a way to access object properties using brackets? Currently, it seems there's no way to access an object property that has spaces on its name. e.g. ``` let...