round

From MaRDI portal
Revision as of 19:55, 12 March 2024 by Import240312060351 (talk | contribs) (Created automatically from import240312060351)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Software:71773



CRANroundMaRDI QIDQ71773

Rounding to Decimal Digits

Martin Maechler

Last update: 10 January 2024

Copyright license: Affero General Public License, File License

Software version identifier: 0.20-0, 0.12-1, 0.12-2, 0.21-0.1, 0.21-0, 0.21-0.2



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.