Formats decimal numbers.