[R] - round() strange behaviour

Jim Lemon jim at bitwrit.com.au
Mon Aug 6 11:31:22 CEST 2007


(Ted Harding) wrote:
> ...
> Thus "always up" or "always down" means that the difference between
> rounded numbers is always the same as between the unrounded numbers
> which for other methods the differences can differ by 2.0.
> This may or may not matter, but it is something to think about
> when choosing a rounding method.
> 
Ah, but Ted, this is why, as I remarked in a private message to the 
original poster, we were also taught never to round until the final 
result. Had I not had a rather extended debate with an engineer who 
apparently thought that one could get away with successive rounding, I 
would not be so sensitive on the issue.

Jim



More information about the R-help mailing list