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.
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
|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|
Vignettes of round
Last month downloads
|License||AGPL (>= 3)|
|Packaged||2020-01-15 11:46:58 UTC; maechler|
|Date/Publication||2020-01-24 18:00:03 UTC|
Include our badge in your README