Welcome to the NavList Message Boards.

NavList:

A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding

Compose Your Message

Message:αβγ
Message:abc
Add Images & Files
    Name or NavList Code:
    Email:
       
    Reply
    Re: Measurements
    From: John D. Howard
    Date: 2017 Jul 26, 10:43 -0700

     Tony,

    Not knowing what programing language you would use I will talk in general terms.

    Let DD equal your decimal degrees   DD=123.4567

    Then use the function that gives you the interger of a number     D=INT(DD)

    Subtract the interger from the decimal degrees    MMSS=DD-D

    then multiply the remander by 60       MM=MMSS*60

    You will now have D degrees and MM minutes ( with decimal minutes)

    D=123      MMSS=DD-D=.4567     MM=MMSS*60=27.4

    123 degrees  27.4 minutes

    If you need seconds do the same thing again.

    This does not deal with negative numbers but with some logic ( ie. if DD is less than 0 than .... ) you can multiply by -1 or take the absolute value or ...

    This is only one of doing it.  Brad probobly hav a different way.

    Hope this helps

    John H.

       
    Reply
    Browse Files

    Drop Files

    NavList

    What is NavList?

    Get a NavList ID Code

    Name:
    (please, no nicknames or handles)
    Email:
    Do you want to receive all group messages by email?
    Yes No

    A NavList ID Code guarantees your identity in NavList posts and allows faster posting of messages.

    Retrieve a NavList ID Code

    Enter the email address associated with your NavList messages. Your NavList code will be emailed to you immediately.
    Email:

    Email Settings

    NavList ID Code:

    Custom Index

    Subject:
    Author:
    Start date: (yyyymm dd)
    End date: (yyyymm dd)

    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site