[R] QUESTION ON ROUNDING
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Mar 28 19:27:19 CET 2013
On Thu, Mar 28, 2013 at 6:21 PM, Andras Farkas <motyocska at yahoo.com> wrote:
>
> Dear All,
>
> wonder if you have a thought on the following: I am using the round(x,digits=3) command, but some of my values come out as: 0.07099999999999999 AND 0.06900000000000001. Any thoughts on why this maty be happening or how to eliminate the problem?
>
I'd guess you've played with the default digits for print() (perhaps
via options) but a reproducible example would be terribly lovely.
MW
> apreciate the help,
>
> Andras
> [[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.
>
More information about the R-help
mailing list