decimal_places | R Documentation |
Counts the number of digits to the right of the decimal place, ignoring any trailing zeroes.
decimal_places(x)
x |
A numeric vector |
An integer vector containing the number of digits to the right of the decimal for each
element of x
## Not run: decimal_places(c(0.11, 23.4, 185.8987, 0.1100)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.