Re: [Rd] Logical Error? (PR#13516)

From: Olaf Mersmann <olafm_at_kimberly.tako.de>
Date: Tue, 10 Feb 2009 16:43:06 +0100

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 10 Feb 2009 - 14:49:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Feb 2009 - 15:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive