[R] Rounding error in seq(...)

Rolf Turner r.turner at auckland.ac.nz
Wed Sep 30 21:27:01 CEST 2009


On 1/10/2009, at 8:17 AM, Martin Batholdy wrote:

> hum,
>
> can you explain that a little more detailed?
> Perhaps I miss the background knowledge - but it seems just absurd to
> me.
>
> 0.1+0.1+0.1 is 0.3 - there is no rounding involved, is there?
>
> why is
> x <- 0.1 + 0.1 +0.1
> not equal to
> y <- 0.3
>
> ?

You have told the answer already, several times.

	*******FLOATING POINT ARITHMETIC********

If you still don't understand, read up on it.  Start by looking at  
the FAQ.

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list