fixes formatting and parsing of numbers