From h.wickham at gmail.com  Thu Oct 27 15:49:48 2005
From: h.wickham at gmail.com (hadley wickham)
Date: Thu, 27 Oct 2005 08:49:48 -0500
Subject: [Rd] Strange behaviour of type conversion (PR#8256)
In-Reply-To: <20051027134009.5BCDB2215C@slim.kubism.ku.dk>
References: <20051027134009.5BCDB2215C@slim.kubism.ku.dk>
Message-ID: <f8e6ff050510270649n7497a2fcr40c0f420066763d4@mail.gmail.com>

> Where is my error??

You are assuming that numbers are represented exactly:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

> 0.3/0.1 == 3
[1] FALSE

Hadley



[Rd] Strange behaviour of type conversion (PR#8256)
hadley wickham