Count the number of digits after a decimal place. Note that trailing zeros will likely be ignored.
Examples
countDecDigits(c(1, 1.1, 1.12, 1.123, 1.1234, -1, 0, 10.0000, 10.0010))
#> [1] 0 1 2 3 4 0 0 0 3
Count the number of digits after a decimal place. Note that trailing zeros will likely be ignored.
countDecDigits(c(1, 1.1, 1.12, 1.123, 1.1234, -1, 0, 10.0000, 10.0010))
#> [1] 0 1 2 3 4 0 0 0 3