4 ms·
R: round(0.5) = 0.0 but round(1.5) = 2
- jjgreen 6y agoThis is the "statistician's rounding" as recommended in IEEE-754, so makes sense it is the default in R. https://en.wikipedia.org/wiki/Rounding#Round_half_to_even https://en.wikipedia.org/wiki/Rounding#Round_half_to_even