[R] calculate differences - strange outcome

From: Kunzler, Andreas <a.kunzler_at_bzaek.de>
Date: Thu, 17 Jul 2008 11:47:42 +0200

Dear List,

I ran into some trouble by calculating differences. For me it is important that differences are either 0 or not.

So I don't understand the outcome of this calculation

[1] -1.136868e-13

I run R version 2.71 on WinXP

I could solve my problem by using
but I would like to know the reason.
Maybe someone can help me?


R-help_at_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. Received on Thu 17 Jul 2008 - 09:50:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Jul 2008 - 13:32:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive