[Rd] potential r bug (floor)

kjetil brinchmann halvorsen kjetil at entelnet.bo
Tue Jun 24 16:26:56 MEST 2003

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

More information about the R-devel mailing list