fix the getDecimal function to resolve the warnings