如何将GPS度数,分钟,秒转换为度数,只需将分钟和秒转换为小数?
答案 0 :(得分:1)
这是简单的数学运算。 float decimalMinutes = wholeMinutes + ((float)wholeSeconds)/60;
答案 1 :(得分:0)
似乎你想要一个DMS到DM的转换(DM =积分度和小数分钟) -
// DMS expressed as d,m and s
int d;
int m;
int s;
// DM excpressed as d, decMin
decMin = m + s / 60.0;