[Tutor] the binary math "wall"

spir ☣ denis.spir at gmail.com
Tue Apr 20 21:38:26 CEST 2010


On Tue, 20 Apr 2010 14:45:50 -0400
Dave Angel <davea at 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


More information about the Tutor mailing list