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