def within_percent(num1, num2, percent: int):
    """Compare two numeric values by percentage difference

    Return True if they are mutually within x-percent of each other

    Parameters
    ----------
    num1 : int or float
    num2 : int or float
    percent : int
        Percentage difference between the two. Mutual difference!

    Returns
    -------
    bool
        True if num1 and num2 are within percent of each other
    """
    # Sort numerically, convert to float just in case
    compsorted = sorted([float(num1), float(num2)])
    lower = 1 - (float(percent)/100)
    upper = 1 + (float(percent)/100)
    if compsorted[0] * upper > compsorted[1] * lower:
        return(True)
    else:
        return(False)