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.5)round_0.21-0.2.zip(r-4.4)round_0.21-0.2.zip(r-4.3)
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.tgz(r-4.4-x86_64)round_0.21-0.2.tgz(r-4.4-arm64)round_0.21-0.2.tgz(r-4.3-x86_64)round_0.21-0.2.tgz(r-4.3-arm64)
round_0.21-0.2.tar.gz(r-4.5-noble)round_0.21-0.2.tar.gz(r-4.4-noble)
round_0.21-0.2.tgz(r-4.4-emscripten)round_0.21-0.2.tgz(r-4.3-emscripten)
round.pdf |round.html
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-Forge:

4.30 score 8 scripts 835 downloads 2 mentions 13 exports 0 dependencies

Last updated 1 years agofrom:b1b84b82bd. Checks:11 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 01 2025
R-4.5-win-x86_64OKMar 01 2025
R-4.5-mac-x86_64OKMar 01 2025
R-4.5-mac-aarch64OKMar 01 2025
R-4.5-linux-x86_64OKMar 01 2025
R-4.4-win-x86_64OKMar 01 2025
R-4.4-mac-x86_64OKMar 01 2025
R-4.4-mac-aarch64OKMar 01 2025
R-4.3-win-x86_64OKMar 01 2025
R-4.3-mac-x86_64OKMar 01 2025
R-4.3-mac-aarch64OKMar 01 2025

Exports:fpclassifyilogbisnormallogBnearbyintnextafternexttowardrandIround_r3roundAllroundVersionsroundXsignbit

Dependencies:

Exact Decimal Rounding via Rationals

Rendered fromrationalRound.Rmdusingknitr::rmarkdownon Mar 01 2025.

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

Rounding to Decimal Digits in Binary

Rendered fromRounding.Rmdusingknitr::rmarkdownon Mar 01 2025.

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