powered by
Rounding the way most people do it with .5 roudning up
round2(x, digits = 2)
`round2` returns a truncated `numeric` with decimal places equal to `digits` argument
number to be rounded
how many digits to round to
x <- 1.2345 round2(x, digits = 2)
Run the code above in your browser using DataLab