I'm interested in best practises for the following issue, which requires careful handling:
> 0.1 + 0.2 == 0.3
[1] FALSE
We can do
> all.equal(0.1 + 0.2, 0.3)
[1] TRUE
or
> t = 1e-10
> abs(0.1 + 0.2 - 0.3) <= t
[1] TRUE
But is there a best practise I wonder?