On Sat, 5 Jan 2013, David Arnold wrote:

Hi,

Can someone explain this:

options(digits=20)
1/3
[1] 0.33333333333333331483

Why the 1483 at the end?

Due to floating-point arithmetic, see FAQ 7.31.

Thanks,

David.

david-arnolds-macbook-pro-2:~ darnold$ R --version
R version 2.15.2 (2012-10-26) -- "Trick or Treat"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)




--
View this message in context: 
http://r.789695.n4.nabble.com/Rounding-tp4654738.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.


______________________________________________
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.

Reply via email to