def VerNum(num: str, ignore=0):
    """
    Converts a string representing a version number to an integer that can be compared

    :param num:
    :param ignore:
    :return:
    """
    return sum([1000000 ** i * int(n) for i, n in enumerate(num.split('.')[::-1][ignore:])])