Convert Back Latitude from Hex data GREENTEL

北城余情 提交于 2019-11-29 08:42:51

First you get the hex, convert it back to base 10 and divide it by 30000.

Get the result and divide it by 60, the integer part will be the degrees, the rest will be the minutes.

In python:

a = 0x026B3F3E
b = a/30000.0
degrees = b//60
minutes = b%60

print degrees, ' degrees and ', minutes, 'minutes'
>>> 22.0  degrees and  32.7658 minutes
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!