myround | R Documentation |
Round a number, preserving extra 0's.
myround(x, digits = 1)
x |
Number to round. |
digits |
Number of digits past the decimal point to keep. |
Uses base::sprintf()
to round a number, keeping extra 0's.
A vector of character strings.
base::round()
, base::sprintf()
myround(51.01, 3)
myround(0.199, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.