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
DESCRIPTION |NEWS
card.svg |card.png
round/json (API)

# 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:

5.08 score 12 scripts 5.0k downloads 2 mentions 13 exports 0 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK153
linux-devel-x86_64OK112
source / vignettesOK161
linux-release-arm64OK140
linux-release-x86_64OK114
macos-release-arm64OK94
macos-release-x86_64OK193
macos-oldrel-arm64OK95
macos-oldrel-x86_64OK165
windows-develOK84
windows-releaseOK81
windows-oldrelOK99
wasm-releaseOK93

Exports:fpclassifyilogbisnormallogBnearbyintnextafternexttowardrandIround_r3roundAllroundVersionsroundXsignbit

Dependencies:

Rounding to Decimal Digits in Binary
Intro | The Easy Problem "in Theory" | Rounding to Integers | Rounding to non-zero Digits | Versions of round()ing - The Story | Alternative Approaches | Session information

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

Exact Decimal Rounding via Rationals
Intro | Session information

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

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