On Tue, 20 Apr 2010 14:45:50 -0400
Dave Angel <da...@ieee.org> wrote:

> If all values are made up of  degrees/minutes/seconds, and seconds is a 
> whole number, then store values as num-seconds, and do all arithmetic on 
> those values.  Only convert them back to deg/min/sec upon output.

This seems the most direct answer of the issue. If performance is not critical, 
I would even write a small Angle type with ° ' '' int attributes to get rid of 
(read: abstract away) all complexity once and for all.

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to