-
if I type math.parse('a*b/c') I want it to divide first as according to DMAS, divide has more priority! Is there any way I can change priorities of operators for math.parse? |
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Dec 18, 2023
Replies: 1 comment 1 reply
-
The precedence of multiplication and division in mathjs is hardcoded. If you want to change that, you can either:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
meghna786
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The precedence of multiplication and division in mathjs is hardcoded. If you want to change that, you can either:
Node.transform
method. See docs (search for "transform" on that page).