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.
|Suggests:||grDevices, graphics, Matrix, lattice, gmp, knitr, rmarkdown|
|Author:||Martin Maechler [aut, cre], R-core [ctb] ("r1.C" only)|
|Maintainer:||Martin Maechler <maechler at stat.math.ethz.ch>|
|License:||AGPL (≥ 3) | file LICENSE|
|CRAN checks:||round results|
Rounding to Decimal Digits in Binary
Exact Decimal Rounding via Rationals
|Windows binaries:||r-devel: round_0.21-0.zip, r-release: round_0.21-0.zip, r-oldrel: round_0.21-0.zip|
|macOS binaries:||r-release (arm64): round_0.21-0.tgz, r-oldrel (arm64): round_0.21-0.tgz, r-release (x86_64): round_0.21-0.tgz, r-oldrel (x86_64): round_0.21-0.tgz|
|Old sources:||round archive|
|Reverse suggests:||gmp, iemiscdata|
Please use the canonical form https://CRAN.R-project.org/package=round to link to this page.