round2 {MCOE} | R Documentation |
Rounding the way most people do it with .5 roudning up
Description
Rounding the way most people do it with .5 roudning up
Usage
round2(x, digits = 2)
Arguments
x |
number to be rounded |
digits |
how many digits to round to |
Value
'round2' returns a truncated 'numeric' with decimal places equal to 'digits' argument
Examples
x <- 1.2345
round2(x, digits = 2)
[Package MCOE version 0.4.0 Index]