From kjetil at entelnet.bo  Tue Jun 24 16:26:56 2003
From: kjetil at entelnet.bo (kjetil brinchmann halvorsen)
Date: Tue Jun 24 21:36:11 2003
Subject: [Rd] potential r bug (floor)
In-Reply-To: <Pine.WNT.4.44.0306232014520.2668-100000@petrel>
References: <000101c339bb$7ed14f60$6b02a8c0@pasmanallaptop>
Message-ID: <3EF86DC0.5086.57E9D@localhost>

On 23 Jun 2003 at 20:20, Prof Brian D Ripley wrote:

> Why is this a bug?  If you take apply floor to a number that you expect to
> be exactly 3, but compute it on a binary computer via logs to base e, you
> must expect some rounding error.
> 
> BTW, on my Windows XP machine I do get
> 
> > floor(log10(1000))
> [1] 3
> 
 
On my windows XP machine (R1.7.1) i get:

> floor( log10(1000) )
[1] 2


Why this difference between different XP machines?

Kjetil Halvorsen


[Rd] potential r bug (floor)
kjetil brinchmann halvorsen