[R] Rounding like in finances

Oliver oliver at first.in-berlin.de
Mon Feb 22 15:34:28 CET 2010


Oh strange...


> round(108.275 , 2)
[1] 108.28
> round(208.275 , 2)
[1] 208.28
> round(308.275 , 2)
[1] 308.27
> 


looks not like what one should expect...


R version 2.9.2 (2009-08-24)



Ciao,
   Oliver



More information about the R-help mailing list