Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Format conversion

This is a discussion on Format conversion within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, having a latitude like : 41,2323032 How can i format in DMS format 41 23' 23,24'' Regards Gianmaria...

  1. #1
    Gianmaria is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    47

    Format conversion

    Hi,
    having a latitude like : 41,2323032

    How can i format in DMS format 41 23' 23,24''


    Regards
    Gianmaria

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Code:
    double lat = 41.2323032;
    int degree, minute;
    double seconds;
    
    degree = (int)lat;
    lat -= degree;
    lat *= 60;
    minute = (int)lat;
    lat -= minute;
    lat *= 60;
    seconds = lat;
    string pos = degree.ToString() + '' + minute.ToString() + "'" + seconds.ToString("F2") + '"';

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. OLEVariant conversion
    By phoque in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-10-2005, 01:44 PM
  2. Help Re Conversion please
    By Ticker in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-09-2004, 11:25 AM
  3. vb6 to vb.net conversion woes
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 07-23-2004, 09:07 AM
  4. Aztec log format/conversion to MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-28-2002, 10:16 AM
  5. lat lon conversion from mappoint format back to gps sentence
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-10-2002, 01:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27