added formatting decimal places function