def commaSplitNum(num: int) -> str:
    """Convert an number to a string with commas in every third position. Also accepts floats.
    For example: 3 -> "3", 30000 -> "30,000", and 561928301 -> "561,928,301"
    https://stackoverflow.com/a/10742904

    :param int num: string to insert commas into. probably just containing digits
    :return: num, but split with commas at every third digit
    :rtype: str
    """
    return f"{num:,}"