import math


def angle_trunc(the_angle):
    """
    Truncate the angle between [0, 360)

    Arguments:
        the_angle {float} -- angle

    Returns:
        float -- Angle between [0,360)]
    """
    while the_angle < 0.0:
        the_angle += math.pi * 2
    return the_angle