Package: round 0.21-0.2

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.

Authors:Martin Maechler [aut, cre], R-core [ctb]

round_0.21-0.2.tar.gz
round_0.21-0.2.zip(r-4.7)round_0.21-0.2.zip(r-4.6)round_0.21-0.2.zip(r-4.5)
round_0.21-0.2.tgz(r-4.6-x86_64)round_0.21-0.2.tgz(r-4.6-arm64)round_0.21-0.2.tgz(r-4.5-x86_64)round_0.21-0.2.tgz(r-4.5-arm64)
round_0.21-0.2.tar.gz(r-4.7-arm64)round_0.21-0.2.tar.gz(r-4.7-x86_64)round_0.21-0.2.tar.gz(r-4.6-arm64)round_0.21-0.2.tar.gz(r-4.6-x86_64)
round_0.21-0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
round/json (API)
NEWS

# Install 'round' in R:
install.packages('round', repos = c('https://mmaechler.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://gitlab.com/mmaechler/round

On CRAN:

Conda:

4.88 score 11 scripts 3.5k downloads 2 mentions 13 exports 0 dependencies

Last updated from:b1b84b82bd. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK112
linux-devel-x86_64OK122
source / vignettesOK155
linux-release-arm64OK122
linux-release-x86_64OK115
macos-release-arm64OK92
macos-release-x86_64OK257
macos-oldrel-arm64OK88
macos-oldrel-x86_64OK152
windows-develOK76
windows-releaseOK79
windows-oldrelOK77
wasm-releaseOK95

Exports:fpclassifyilogbisnormallogBnearbyintnextafternexttowardrandIround_r3roundAllroundVersionsroundXsignbit

Dependencies:

Exact Decimal Rounding via Rationals

Rendered fromrationalRound.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2020-07-30
Started: 2020-07-24

Rounding to Decimal Digits in Binary

Rendered fromRounding.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2023-10-11
Started: 2020-01-15

Readme and manuals

Help Manual

Help pageTopics
C99 'math' Library Functions (where Not in Standard aka 'Base' R)fpclassify ilogb isnormal logB nearbyint nextafter nexttoward signbit
Random Integers of Specified Number of DigitsrandI
Rounding Numbers to Decimal Digits - VariantsroundAll roundVersions roundX round_r3