round: Rounding to Decimal Digits

Decimal rounding is non-trivial in binary arithmetic. ISO standard round to even is more rare than typically assumed as most decimal fractions are not exactly representable in binary. Our roundX() versions explore differences between current and potential future versions of round() in R. Further, provides (some partly related) C99 math lib functions not in base R.

Version: 0.12-1
Imports: stats
Suggests: grDevices, graphics, Matrix, lattice, knitr
Published: 2020-01-24
Author: Martin Maechler ORCID iD [aut, cre], R-core [ctb] ("r1.C" only)
Maintainer: Martin Maechler <maechler at>
License: AGPL (≥ 3)
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: round results


Reference manual: round.pdf
Vignettes: Rounding to Decimal Digits in Binary
Package source: round_0.12-1.tar.gz
Windows binaries: r-devel:, r-devel-gcc8:, r-release:, r-oldrel:
OS X binaries: r-release: round_0.12-1.tgz, r-oldrel: round_0.12-1.tgz


Please use the canonical form to link to this page.