2014-02-06 146 views

回答

1

這是簡單的數學。 float decimalMinutes = wholeMinutes + ((float)wholeSeconds)/60;

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; 
+0

好的,謝謝你,我意識到我應該剛剛問過幾分鐘/秒的轉換......我後來意識到我需要一種非常不同的轉換 - 請參閱我的USGS/Google Earth問題在其他地方.. – user3280417

+0

考慮upvoting我的答案。(向上箭頭) – AlexWien

相關問題