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.

Package details

AuthorMartin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), R-core [ctb] ("r1.C" only)
MaintainerMartin Maechler <maechler@stat.math.ethz.ch>
LicenseAGPL (>= 3) | file LICENSE
Version0.21-0.2
URL https://gitlab.com/mmaechler/round/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("round")

Try the round package in your browser

Any scripts or data that you put into this service are public.

round documentation built on May 29, 2024, 5:49 a.m.