> Where the value of exp(1) as computed by R is concerned, you have > been deceived by what R displays ("prints") on screen. The default > is to display any number to 7 digits of accuracy, but that is not > the accuracy of the number held internally by R: > > exp(1) > # [1] 2.718282 > exp(1) - 2.718282 > # [1] -1.715410e-07
I encourage anyone confused about this issue to study http://en.wikipedia.org/wiki/The_Treachery_of_Images And to watch http://www.youtube.com/watch?v=ejweI0EQpX8 Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ 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.