This is the behavior of the floating point number representation. Decimal fractions do not come out even in binary notation. Please see FAQ 7.31
On Tue, Jul 10, 2012 at 4:17 PM, ollestrat <stratm...@gmx.de> wrote: > Hello, > > I fear its a stupid question,..but here it is: > > If I do this simple calculation with the R console, I surprisingly do not > get a zero. Why? > > -1.1-0.1+1.2 > [1] -2.220446e-16 > > > greetings, Ole > > -- > View this message in context: > http://r.789695.n4.nabble.com/1-1-0-1-1-2-is-NOT-null-Why-tp4636053.html > Sent from the R help mailing list archive at Nabble.com. > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.