The built-in **R** function `round`

rounds a 5 to the even digit. Instead, we preferred
the more intuitive rounding meaning that a 5 is always rounded to the next higher digit.

1 | ```
myRound(d)
``` |

`d` |
Real number. |

The biggest integer not bigger than *d* if *d - \lfloor d \rfloor < 0.5* and the smallest integer greater than
*d* if *d - \lfloor d \rfloor ≥ 0.5*.

Kaspar Rufibach, kaspar.rufibach@gmail.com,

http://www.kasparrufibach.ch

Guenther Walther, gwalther@stanford.edu,

www-stat.stanford.edu/~gwalther

The built-in **R** function `round`

.

1 2 3 4 5 6 7 8 9 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.