R/decimals.R
ndecimal.Rd
Count the number of decimal places
ndecimal(num)
a numeric value
#example 1 ndecimal(9.000322) #> [1] 6 #example 2 ndecimal(34) #> [1] 0 #example 3 ndecimal(45.) #> [1] 0