implements decimal input format (parsing)