News for hackers. Stuff that matters.
Re:Is “data scientist” the new “programmer”? by j7ake on Wednesday September 19, 2018 @03:05AM (#18022343)
Try this:

> print(.1+.2, digits=18) [1] 0.300000000000000044

Re:Is “data scientist” the new “programmer”? by darkhorn on Wednesday September 19, 2018 @11:42AM (#18025022)
In R 0.1 + 0.2 returns 0.3. In Python 0.1 + 0.2 returns 0.30000000000000004

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)