If I sum 0.1, 10 times in R why does it not equal 1?
e.g
0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1
returns
FALSE
However
0.1 * 10 ==1
returns
TRUE
Can anyone explain this behavior?
If I sum 0.1, 10 times in R why does it not equal 1?
e.g
0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1
returns
FALSE
However
0.1 * 10 ==1
returns
TRUE
Can anyone explain this behavior?