samfundev / TextFieldCalculator

A calculator that evalutes as you type into a text-field.
https://samfundev.github.io/TextFieldCalculator/Calculator-v2.html
3 stars 3 forks source link

(2)/1(2)=1 instead of 4 #8

Open RyanGreyling2 opened 9 months ago

RyanGreyling2 commented 9 months ago

2/1(2) yields 4 as expected. However (2)/1(2) gives 1

samfundev commented 9 months ago

This would likely need to be solved in the library that we use to evaluate. There seems to be a similar issue being discussed here: josdejong/mathjs/discussions/2951