math-expression-evaluator icon indicating copy to clipboard operation
math-expression-evaluator copied to clipboard

Math JS library. Super advanced & efficient Math expression evaluator

Results 28 math-expression-evaluator issues
Sort by recently updated
recently updated
newest added

It would be great to support conditional expressions (like "if statements"). Similar to math.js "Conditional expression" seen here https://mathjs.org/docs/expressions/syntax.html ![image](https://user-images.githubusercontent.com/684701/182473372-b5f5dcda-6fd9-4b4e-ac5c-be419a6b96e9.png)

I'm unsure if this issue should go here or in the Definitely Typed repo. According to the types `eval` returns a string: [eval](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/math-expression-evaluator/index.d.ts#L19) ```ts static eval(exp: string, tokens?: Token[], pair?:...

Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 19.0.2 to 19.0.3. Release notes Sourced from semantic-release's releases. v19.0.3 19.0.3 (2022-06-09) Bug Fixes log-repo: use the original form of the repo url to remove the need...

dependencies

Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.3 to 3.1.4. Release notes Sourced from semver-regex's releases. v3.1.4 Backport of ReDoS fix https://github.com/sindresorhus/semver-regex/commit/7712ba564d40da101cf2b2b33e6a910d9f2f57f4 Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=semver-regex&package-manager=npm_and_yarn&previous-version=3.1.3&new-version=3.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will...

dependencies

Bumps [npm](https://github.com/npm/cli) from 8.3.2 to 8.12.0. Changelog Sourced from npm's changelog. v8.12.0 (2022-06-01) Features aee6fc8 #4892 feat(init): reify on init new workspace (@​ruyadorno) a8ae177 #4931 feat: Add --auth-type=webauthn flag (@​jumoel)...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) v5.1.1 Bug Fixes unescape exclamation mark (#26) (a98874f) v5.1.0 Features add...

dependencies

Bumps [ajv](https://github.com/ajv-validator/ajv) from 4.11.8 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@​ChALkeR). Fix boolean schemas with strictKeywords...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 3.10.1 to 4.17.21. Release notes Sourced from lodash's releases. 4.0.0 lodash v4.0.0 2015 was big year! Lodash became the most depended on npm package, passed 1 billion...

dependencies

It would be simply wonderful to get support for doing math evaluations using hexadecimal (or even octal) notation. Is there any way to do add that?

The documentation [here](https://bugwheels94.github.io/math-expression-evaluator/) has some typos in the supported math symbols section, ``` \ Multiplication Operator eg. 23 results 6 ``` should be ``` * Multiplication Operator eg. 2*3 results...