|
-
Jan 30th, 2012, 02:47 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] How to Convert Decimal Degrees (DD) to Degrees-Minutes-Seconds (DMS)
How to convert decimal degrees (example: 42.36824) to 42 deg., 22 min., 06 sec. in Visual Basic
Manual calculation
(1) The Degrees are simply the numbers to the left of the decimal (using 42.36824 as in the example above, the degrees would be 42)
(2) To determine the Minutes, multiply the number to the right of the decimal point by 60 (example: .36824 x 60 = 22.0944)
(3) The Minutes are the numbers to the left of the decimal point (in this example, 22)
(4) To determine the Seconds, multiply the number to the right of the decimal point by 60 (example: .0944 x 60 = 5.664)
(5) The Seconds are the numbers to the left of the decimal point, rounded up (in this example, 06)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|