Learn R Programming

⚠️There's a newer version (0.21-0.2) of this package.Take me there.

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.

Copy Link

Version

Install

install.packages('round')

Monthly Downloads

710

Version

0.12-1

License

AGPL (>= 3)

Maintainer

Martin Maechler

Last Published

January 24th, 2020

Functions in round (0.12-1)

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