Increase R precision
On 27/10/2010 7:49 AM, Alaios wrote:
Hello everyone. When I execute the following in R
(18-46)/(45-93)
[1] 0.5833333 I get small precision for what I am trying to deal with . Is it possible to increase the precision for this and for other operations? For example openoffice calc for this operation returns 0.58333333333333300000
With options(digits=20) R will print
0.5833333333333334
which looks to me to be slightly more accurate than the OO value. But
the internal value is unaffected by the options("digits") setting, it
only affects printing.
Duncan Murdoch
I I would like to thank you for your help [[alternative HTML version deleted]]
______________________________________________ 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.