dplyr icon indicating copy to clipboard operation
dplyr copied to clipboard

bug in `dplyr::near`?

Open kaz462 opened this issue 10 months ago • 6 comments

Is the following example a bug in near?

> near(1.1 * 100 * 10^200, 110 * 10^200)
[1] FALSE

Originally posted by @bundfussr in https://github.com/pharmaverse/admiral/issues/2060#issuecomment-1691876301

The same example works as expected with base::all.equal()

> all.equal(1.1 * 100 * 10^200, 110 * 10^200)
[1] TRUE

kaz462 avatar Aug 31 '23 00:08 kaz462