[Rd] Logical Error? (PR#13516)
Olaf Mersmann
olafm at kimberly.tako.de
Tue Feb 10 16:43:06 CET 2009
Excerpts from camey's message of Tue Feb 10 15:55:04 +0100 2009:
> Using the commands bellow I expected that the answer is TRUE, but it is FALSE!
>
> P_exposicao=.9
> (1-P_exposicao)==.1
Look at the difference of the two, it is much smaller than .Machine$double.eps on my computer.
This is not a bug, it's due to the limited precision of floating point numbers.
Sincerely
Olaf Mersmann
More information about the R-devel
mailing list