round0 | R Documentation |
Rounds values in its first argument to the specified number of decimal places, returning character, ensuring first decimal digits are showed even when they are zeros.
round0(x, digits = 0)
x |
A numeric vector. |
digits |
Integer indicating the number of decimal places. Defaults to 0. |
A character vector.
https://stackoverflow.com/questions/42105336/how-to-round-a-number-and-make-it-show-zeros
round
a = 14.0034
round0(a,2)
b = 10
round0(b,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.