Patrick Giraudoux wrote:
>
> I have some trouble with the number of decimals in R (currently R
> 2.9.0). For instance:
>
> > options()$digits
> [1] 3
>
> let me hope that I will get three digits where useful when a number is
> printed. BUT:
>
> > 44.25+31.1+50
> [1] 125
>
> No way to get the right result 125.35
>
It says digits, not decimals:
> (44.25+31.1+50)/100
[1] 1.25
Dieter
--
View this message in context:
http://www.nabble.com/decimal-troubles---tp23498062p23498345.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.