Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Functions (3)

round

Rounding to Decimal Digits

v0.20-0
AGPL (>= 3) | file LICENSE
Authors
Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), R-core [ctb] ("r1.C" only)
Initial release
2021-01-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.