Add setDecimal function to calculator