From olafm at kimberly.tako.de  Tue Feb 10 16:43:06 2009
From: olafm at kimberly.tako.de (Olaf Mersmann)
Date: Tue, 10 Feb 2009 16:43:06 +0100
Subject: [Rd] Logical Error? (PR#13516)
In-Reply-To: <20090210145504.B22D8282C765@mail.pubhealth.ku.dk>
References: <20090210145504.B22D8282C765@mail.pubhealth.ku.dk>
Message-ID: <1234280417-sup-2166@bloxx.plex>

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



[Rd] Logical Error? (PR#13516)
Olaf Mersmann