getDec function

Return the number of decimal places.