HP Forums

Full Version: I would like 53° 41′ 59″ N 9° 44′ 26″ E in 53.699722°, 9.740556°
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!?
In the [Toolbox] catalog:

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

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

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

an then HMS->(DG°MI'SE''); !!??
(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+"″"));
(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
Thaks for all example.

@Dieter, that is a good question! :-)
Reference URL's