round v0.12-1

0

Monthly downloads

0th

Percentile

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.

Readme

round

Versions of round(x, digits) for R. This is less trivial than you may think: Numbers (and arithmetic) is in binary, rounding (apart from digits=0) is to decimals.

Functions in round

Name Description
mathC99 C99 'math' Library Functions (where Not in Standard aka 'Base' R)
randI Random Integers of Specified Number of Digits
roundX Rounding Numbers to Decimal Digits -- Variants
No Results!

Vignettes of round

Name
Rounding.Rmd
style.css
No Results!

Last month downloads

Details

Date 2020-01-15
License AGPL (>= 3)
Encoding UTF-8
VignetteBuilder knitr
URL https://gitlab.com/mmaechler/round/
BugReports https://gitlab.com/mmaechler/round/issues
NeedsCompilation yes
Packaged 2020-01-15 11:46:58 UTC; maechler
Repository CRAN
Date/Publication 2020-01-24 18:00:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/round)](http://www.rdocumentation.org/packages/round)