HP Forums
I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° (/thread-8007.html)



I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Onieh - 03-23-2017 02:06 PM

How can I change the geographic coordinates in Wingelgrad in the HP Prime and vice versa.
The whole is to be done with a program.

INPUT: 53° 41' 49'' = Output 53.699722
INPUT: 9° 44' 26'' = Output 9.740556

with HMS!?


RE: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - DrD - 03-23-2017 02:46 PM

In the [Toolbox] catalog:

→HMS(53.699722) ==>53°41′58.9992″

HMS→(53°41′58.9992″) ==> 53.699722

-Dale-


RE: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Onieh - 03-23-2017 03:53 PM

I mean:
.
.
.
INPUT(DG,"Breitengrad");
INPUT(MI,"Minunten");
INPUT(SE,"Sekunden");

an then HMS->(DG°MI'SE''); !!??


RE: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Didier Lachieze - 03-23-2017 04:58 PM

(03-23-2017 03:53 PM)Onieh Wrote:  and then HMS->(DG°MI'SE''); !!??

You have to create the DG°MI'SE'' string before conversion like that:
Code:
HMS→(EXPR(DG+"°"+MI+"′"+SE+"″"));



RE: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Dieter - 03-24-2017 07:00 AM

(03-23-2017 03:53 PM)Onieh Wrote:  INPUT(DG,"Breitengrad");
INPUT(MI,"Minunten");
INPUT(SE,"Sekunden");

an then HMS->(DG°MI'SE''); !!??

If the user has to enter all three values separately, why don't you just calculate the decimal degrees as DG + MI/60 + SE/3600 ?-)

Dieter


RE: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556° - Onieh - 03-24-2017 08:24 AM

Thaks for all example.

@Dieter, that is a good question! :-)