def is_number_const(string):
    """ Returns value which indicates whether the string represents a number constant. """
    try:
        float(string)
        return True
    except ValueError:
        return False
