This brings the angin into the \([0 2*pi[\) interval.
angin
angout = zero22pi(angin)
See also
nPI to PI