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.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'))

Peer review:

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

On CRAN:

4.60 score 8 scripts 952 downloads 2 mentions 13 exports 0 dependencies

Last updated 11 months agofrom:b1b84b82bd. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-win-x86_64OKNov 01 2024
R-4.5-linux-x86_64OKNov 01 2024
R-4.4-win-x86_64OKNov 01 2024
R-4.4-mac-x86_64OKNov 01 2024
R-4.4-mac-aarch64OKNov 01 2024
R-4.3-win-x86_64OKNov 01 2024
R-4.3-mac-x86_64OKNov 01 2024
R-4.3-mac-aarch64OKNov 01 2024

Exports:fpclassifyilogbisnormallogBnearbyintnextafternexttowardrandIround_r3roundAllroundVersionsroundXsignbit

Dependencies:

Exact Decimal Rounding via Rationals

Rendered fromrationalRound.Rmdusingknitr::rmarkdownon Nov 01 2024.

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

Rounding to Decimal Digits in Binary

Rendered fromRounding.Rmdusingknitr::rmarkdownon Nov 01 2024.

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