Hi All-- Tim Peters wrote: > Across platforms with a 754-conforming > libm, the most portable way is via using atan2(!): > > >>> pz = 0.0 > >>> mz = -pz > >>> from math import atan2 > >>> atan2(pz, pz) > 0.0 > >>> atan2(mz, mz) > -3.1415926535897931 >
Never fails. Tim, you gave me the best laugh of the day. Metta, Ivan ---------------------------------------------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list