Count the number of decimal places
ndecimal(num)
num
a numeric value
#example 1 ndecimal(9.000322) #example 2 ndecimal(34) #example 3 ndecimal(45.)