## Geographic conversion

Hi all,

The conversion between decimal degrees and degrees minutes seconds is not equal or incorrect. Can anyone help or
explain? I'm assuming it revolves around recurring numbers.

E.g.:

Converting 22°15'45.7" to decimal degrees using this online calculator, bigint ticked with the following
formula:

((((45.7)/60+15)/60)+22) = 22.262694* (*4 recurs 608 times followed by a 5).

Using this number in reverse formula to get the seconds: ((22.262694-22)*60-15)*60 = 45.70* (*0 recurs 609 times followed by 205). This is not equal to 45.7.

Thanks in advance for your help,

Michael

because ttmath uses floating point numbers:

http://en.wikipedia.org/wiki/Floating_point#Accuracy_problem s