[R] - round() strange behaviour
p.dalgaard at biostat.ku.dk
Thu Aug 2 22:31:22 CEST 2007
Monica Pisica wrote:
> I am getting some strange results using round - it seems that it depends if the number before the decimal point is odd or even ....
> For example:
>> round(1.5) 2> round(2.5) 2
> While i would expect that round(2.5) be 3 and not 2.
> Do you have any explanation for that?
More information about the R-help