def get_digit_at_pos(num, base, pos):
    """
    Gets the integer at the given position of the number in a specific base

    @param num      The number we wish to find the converted digit in
    @param base     The base in which the digit is calculated
    @param pos      The position of the digit to be found
    @return         The integer at that digit
    @complexity     O(1)
    """
    return (num // base ** pos) % base