Modify formatting of doubles