JavaScript Calculator Test 12 isn't passing

Hello Devs,
I am currently working on the JavaScript Calculator project and I have one test left which is test 12. It works manually but doesn’t seem to pass the test suite’s test. Pls, help me to look into it.
Here is a link to the project https://javascript-calculator-gy.vercel.app/ and the source code GitHub - CodeEvolver/javascript-calculator
It says

When I tested 1.9 - 1.8 I got 0.09999999999999987. So I assume there is some sort of rounding error in your code.

1 Like

Thanks, I will check it out

It’s now working. It was due to unthorough clean up of the input when starting a new calculation without pressing clear. Thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.