91
rated 0 times
[
95]
[
4]
/ answers: 1 / hits: 18845
/ 14 Years ago, tue, march 1, 2011, 12:00:00
I was shocked to see such a basic subtraction bug in JS, I am sure most of you here would have experienced this issue, please help me with a work around here,
All I am doing is subtracting a number from 100 which gives unexpected results, an example is stated below
100 - 99.1
// returns 0.9000000000000057
Am I doing something wrong here ? :S I am confused
More From » javascript