dftlib.utility.numbers.parse_number¶
- parse_number(number, parameters)¶
Parse number. First, the number is parsed as a float. If this is not possible (and parameters are given), simply return the rational function as a string. :param number: Number to parse. :param parameters: Parameters which are defined. If none are given, the number is parsed as a float. :return: Number as float (default) or as string (if it cannot be handled as a float and parameters are present).