coordinates

How can I turn string of coordinates to latitude and longitude?

sample : latitude 86,5,51,0  longitude 41, 8.74, 0

86.551000000000   41.874000000   ?
VBdotnet2005Asked:
Who is Participating?
 
CodeCruiserCommented:
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
Dim original As String = "86,5,51,0"
Dim values() As String = original.Split(","c)
Dim result As String

result = values(0) & "." & (values(1) & values(2) & values(3)).PadRight(12, "0"c)

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.