josdejong / josdejong/mathjs

throw error "SyntaxError: Parenthesis ) expected (char 102)"

Open
#1,485 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I am throwing `SyntaxError: Parenthesis )expected (char 102) ` when using math.eval, And I found that when calculating the same expression, the scope variable parameter is 'complex' when it is reported, the 'simple' is normal; for example: "1.5/18.5" is calculated normally to get '0.081081081', "1.39/ 18.6" is reported. The specific situation is as follows:

```js
expression=math.eval(formul, data),

form="bignumber((hs1-hg1)/(bignumber(hg1-hm1)))"),
hs1=40,
hg1=38.6,
Hm1=20

```

---

Edited: to make formatting clearer :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.