[R] Bug in options(digits=n)??

Ravi Kulkarni ravi.kulk at gmail.com
Fri Nov 18 09:25:19 CET 2011


This is in version 2.10.1

> sqrt(3)
[1] 1.732051
> 6/7
[1] 0.8571429
> options(digits=3)
> sqrt(3)
[1] 1.73
> 6/7
[1] 0.857
> sqrt(7)
[1] 2.65
> 7/9
[1] 0.778

Ravi

--
View this message in context: http://r.789695.n4.nabble.com/Bug-in-options-digits-n-tp4082537p4082537.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list