3 ms·
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
by bluenose69 6y 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
- wruza 6y agoSee also https://stackoverflow.com/a/253874 https://stackoverflow.com/a/253874