round

From MaRDI portal
Software:71773



CRANroundMaRDI QIDQ71773

Rounding to Decimal Digits

Martin Maechler

Last update: 10 January 2024

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


Copyright license: Affero General Public License, File License

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.