03-29-2006, 10:19 PM
if you use mod then it reverts to integer, so i prefer the other way to keep the double precision. It only needs the +360 when it returns a value from -180 To 0 which is why i used the < 0 compare. Your version is a true one liner though which is cool.