import math


def get_ue_sig_power(ue_ap_distance):
    """
    Function to calculate signal power between the UE and AP
    """
    # To avoid ZeroDivisionError
    if ue_ap_distance:
        distance = (10 * math.log10(1 / math.pow(ue_ap_distance, 2)))
        # discretizing the distance
        distance /= 10
        return round(distance)