value-parser.c (parse_number): Simplified logic and removed redundant lines.