Programing Language: latitude-longitude-decimalize

Discussion in 'Perl Misc' started by Xah Lee, Nov 29, 2011.

  1. Xah Lee

    Xah Lee Guest

    fun programing exercise. Write a function “latitude-longitude-
    decimalizeâ€.

    It should take a string like this: 「"37°26′36.42″N 06°15′14.28″W"ã€.
    The return value should be a pair of numbers, like this: 「[37.44345
    -6.25396]ã€.

    Feel free to use perl, python, ruby, lisp, etc. I'll post a emacs lisp
    solution in a couple of days.

    Xah
     
    Xah Lee, Nov 29, 2011
    #1
    1. Advertising

  2. Xah Lee

    Thad Floryan Guest

    On 11/29/2011 2:53 PM, Xah Lee wrote:
    > fun programing exercise. Write a function “latitude-longitude-
    > decimalizeâ€.
    >
    > It should take a string like this: 「"37°26′36.42″N 06°15′14.28″W"ã€.
    > The return value should be a pair of numbers, like this: 「[37.44345
    > -6.25396]ã€.
    >
    > Feel free to use perl, python, ruby, lisp, etc. I'll post a emacs lisp
    > solution in a couple of days.


    What a waste of time when the following works fine (probably Java):

    <http://transition.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html>
     
    Thad Floryan, Nov 29, 2011
    #2
    1. Advertising

  3. Thad Floryan <> wrote:
    >On 11/29/2011 2:53 PM, Xah Lee wrote:


    Please do not reply to the eternal troll

    Thanks

    jue
     
    Jürgen Exner, Nov 30, 2011
    #3
  4. Xah Lee

    Thad Floryan Guest

    On 11/29/2011 5:14 PM, Jürgen Exner wrote:
    > Thad Floryan <> wrote:
    >> On 11/29/2011 2:53 PM, Xah Lee wrote:

    >
    > Please do not reply to the eternal troll
    >
    > Thanks


    Mea culpa, you're correct. I responded only because the subject
    is something with which I'm familiar, e.g., one of my posts from
    1988 (23 years ago):

    <http://groups.google.com/group/sci.math/msg/d6c891302914fd84>
    and
    <http://groups.google.co.jp/group/sci.math/msg/d6c891302914fd84>

    :)
     
    Thad Floryan, Nov 30, 2011
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. YS Sze
    Replies:
    4
    Views:
    663
    -berlin.de
    Feb 7, 2004
  2. kbperry
    Replies:
    2
    Views:
    315
    kbperry
    May 31, 2006
  3. helpneeded
    Replies:
    6
    Views:
    536
    Help needed
    Aug 1, 2006
  4. Replies:
    5
    Views:
    2,665
    Luc The Perverse
    Aug 14, 2006
  5. Xah Lee
    Replies:
    5
    Views:
    390
    Thad Floryan
    Nov 30, 2011
Loading...

Share This Page