Add ability to set number of decimal places in the output