[R] rounding

ctu at bigred.unl.edu ctu at bigred.unl.edu
Fri Jul 11 01:45:45 CEST 2008


I got
> round(0.55,1)
[1] 0.6
> round(2.55,1)
[1] 2.5
Your answers are also correct. Please check ?round



Quoting "Korn, Ed (NIH/NCI) [E]" <korne at ctep.nci.nih.gov>:

> Hi,
>
> Round(0.55,1)=0.5
>
> Round(2.55,1)=2.6
>
> Can this be right?
>
> Thanks,
>
> Ed
>
> 	[[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