[R] Rounding like in finances

Ivan Calandra ivan.calandra at uni-hamburg.de
Mon Feb 22 15:43:13 CET 2010


same result with R2.10.1 on Windows...

Le 2/22/2010 15:34, Oliver a écrit :
> 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
>
> ______________________________________________
> 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.
>
>    

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Institut und Museum
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calandra at uni-hamburg.de

**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php



More information about the R-help mailing list