Degrees, seconds, to longitude and latitude

Source: Internet
Author: User
01. Option Explicit 02. '====================================== 03. 'Latitude and longitude angle format to radian format conversion 04. ' 05. 'Http://www.cnhup.com/ 06. '====================================== 07. Type tdfm 08. D As Integer 09. F As Integer 10. M As Integer 11. End Type 12. Function Dfm2jw (strdfm As String ) 13. Dim ADFM As Tdfm 14. Dim Vecsplit As Variant 15.    16. Vecsplit = Split (strdfm, "°" , 2) 17. ADFM. d = Val (vecsplit (0 )) 18. Vecsplit = Split (vecsplit (1 ), "′" , 2) 19. ADFM. f = Val (vecsplit (0 )) 20. ADFM. M = Val (vecsplit (1 )) 21.    22. Dfm2jw = ADFM. d + ADFM. f/60 + ADFM. M/3600 23. End Function

The following is a typical text (A1/24, "[H] ° m' s.00") with a decimal point ″")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.