http://forums.devshed.com/c-programming-42/convert-decimal-degrees-to-dms-problem-856892.html#post2703969
Briefly: _ 60 60 #: seconds 90 0 0 whereas the c code in question prints 89 59 60 Summary: NB. with j ( www.jsoftware.com ) we discover the Pythagorean triple. T=: 2.0725 0.5803 1.9896 +./T NB. GCD of the vector 0.0829 (% +./)T NB. divide T by GCD gives Pythagorean triple. 25 7 24 NB. ... 324000-right_angle_in_seconds 5.82077e_11 360 60 60#:right_angle_in_seconds NB. another reason to prefer j 90 0 0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
