add the option to control the number of decimal places