Greg-- Having recently done some very similar trig, I suggest the following: Go ahead and try Math::Trig. This defines many additional trig functions beyond sin(), cos() and atan2(). No need to reinvent the wheel. If not the above, try more accurate values for your constants: $pi = atan2(1,1) * 4.0; $degress = 360/($pi * 2) Of course, I could be wrong... --B # Fungal Parataxonomy Mycology Information (Mycoinfo) # Webmaster, Staff Writer **The World's First Mycology E-Journal** # <mailto:webmaster@mycoinfo.com> <http://www.mycoinfo.com/> # # First they ignore you. Then they laugh at you. Then they fight you. # Then you win. --Mohandas Gandhi ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org