def round_complex(elem: complex, precision: int) -> complex:
    """
    Returns the complex 'elem' rounded to 'precision'
    """
    return complex(round(elem.real, precision), round(elem.imag, precision))