After I read #magically-increasing-numbers,
so I was wondering about If made calculator with JS how and user put a large number like 9999999999999999
const result = 9999999999999999 + 2
console.log(result)
Correct result should be 10000000000000001
not 10000000000000002
I tried with Number()
or even parseFloat()
but still does not work.
How we can deal with that?