10.1 - Math.floor(10.1)
returns 0.09999999999999964
I was expecting to get 0.1
. How can this be achieved?
console.log(10.1 - Math.floor(10.1));
10.1 - Math.floor(10.1)
returns 0.09999999999999964
I was expecting to get 0.1
. How can this be achieved?
console.log(10.1 - Math.floor(10.1));