Tests the number of non-zero decimal places within a number.
decimalplaces(x)
A single number, indicating the number of non-zero decimal places in `x`.
decimalplaces(23.43234525)
#> [1] 8
decimalplaces(334.3410000000000000)
#> [1] 3
decimalplaces(2.000)
#> [1] 0