Skip to content
Prev 385420 / 398506 Next

which.min, equal values and fractions

On Tue, 25 Aug 2020 14:26:43 +0200
Mike <mike9 at posteo.nl> wrote:

            
It's the unfortunate consequence of the way floating point numbers
work:

data3ba - 2.9
# [1]  0.000000e+00 -4.440892e-16

See R FAQ 7.31:
https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f