Hacker News new | ask | show | jobs
by bluenose69 1895 days ago
In R, there are functions for practical equality (to within a tolerance that makes sense on the local machine), e.g.

    > all.equal(0.1+0.2,0.3)
    [1] TRUE
and functions for actual equality, e.g.

    > identical(0.1+0.2,0.3)
    [1] FALSE
1 comments