Convert rotation from sign switching to continuous in Animation Nodes
This signed representation is called a Directed Angle. To convert that to a non-directed angle, simply add $2\pi$ if the result is negative as follows:



This is assuming you angles are in radians, if they are in degrees, you should be adding 360 instead.