> The tangent goes infinite at 90 & 270 degrees. Hard on conversions. Right, that's why you don't do SIN/COS and take the arctangent. You use SIN and COS separately in the arctangent process. Most math libraries have a routine for this, usually called something like ARCTAN2. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu