Description Usage Arguments Value References Examples
This function rounds values based on mathematical rules. That is, numbers ending below 0.5 round down and numbers ending with 0.5 and greater round up.
1 | round2(x, n)
|
x |
a numeric vector |
n |
number of decimal places |
The value returned is a numeric vector, x, rounded to n decimals places.
https://stackoverflow.com/questions/12688717/round-up-from-5
1 2 |
[1] 143.1
[1] 143.05
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.