optimize decimal formatting