View source: R/other_functions.R
roundN | R Documentation |
round2
This function simplifies and specializes the round2
function in exam package. Function rounds the given number to the decimal points specified in argument digits.
roundN(x, digits)
x |
numeric. A numeric vector. |
digits |
numeric. Rounding digits. |
The function round2
does what is known in German as kaufmaennisches Runden (rounding away from zero for trailing 5s).
Numeric value or vector.
For more information see round2
.
round2
roundN(2.67896, digits = 0)
roundN(2.67896, digits = 1)
roundN(2.67896, digits = 2)
roundN(2.67896, digits = 3)
roundN(2.67896, digits = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.