Additionally you can also use ang() to shift the angles into an -180 to 180 range.
See: http://www.conitec.net/beta/avar-ang.htm