import math


def _covert_2pi_to_pi(radians: float) -> float:
    """
    converts from range (0, :math:`2\pi`) to (:math:`-\pi`, :math:`\pi`)

    :param radians: the angle to convert from in radians
    :return: the converted value in range (:math:`-\pi`, :math:`\pi`)
    """
    if radians > math.pi:
        return radians - 2 * math.pi
    return radians