3 ms·
Not on my R: > (0.1 + 0.2) == 0.3 [1] FALSE
by sampo 8y ago
Not on my R:
> (0.1 + 0.2) == 0.3
[1] FALSE
- darkhorn 8y agoThe result for 0.1 + 0.2 is 0.3. https://imgur.com/xWpx1Cg https://imgur.com/xWpx1Cg Why do you compare point to point? I have never once in my Statistics education compared point to point. You always need to see the probability of the result if it is within 2 points. But if you want to compare use all.equal(0.1 + 0.2, 0.3)
- sampo 8y ago> all.equal(0.1 + 0.2 + 0.000000003, 0.3) [1] TRUE