Post Reply 
HMS commands
12-12-2015, 09:32 PM
Post: #1
HMS commands
Hello,

I just purchased the Prime after having the HP 48gx for many, many years. I work in surveying so I always used to use the time functions on the 48gx such as the ->HMS, HMS->, HMS+ and HMS-. Is there a way to bring up all these commands easily as softkeys on the touch screen like the old 48gx? If not does anyone have any suggestions?

Thanks!
Find all posts by this user
Quote this message in a reply
12-12-2015, 10:11 PM (This post was last modified: 12-12-2015 10:13 PM by DrD.)
Post: #2
RE: HMS commands
It may be around page 15 of the user guide, but you can experiment with the [shift][ab/c] key for converting decimal degrees, to/from hours mins secs.

Emulator:
Adding or subtracting from the current answer is just a matter of using the [+] or qwerty [-] (not numpad [-], which is the change sign key). The current answer is just above the command entry line. Using corresponding keys on the Hardware Calc.

If 45°30'00" is in the current answer, then in the command line: [+] 45.5 adds to the current answer => 91.00 or [shift][ab/c] for 91°00'00"

-Dale-
Find all posts by this user
Quote this message in a reply
12-12-2015, 10:54 PM (This post was last modified: 12-12-2015 11:00 PM by Tyann.)
Post: #3
RE: HMS commands
Bonjour
J'ai écrit ces fonctions pour mon usage, si cela peut vous être utile.

Hello
I wrote for my use these functions if it can be useful .

Code:
#pragma mode( separator(.,;) integer(d32) )
EXPORT ➞HMS(s)
BEGIN
 //hh.dddddddd...
 LOCAL a:=IFTE(3<HSeparator<9,",",".");
 s:=REPLACE(STRING(→HMS(s)),a,"");
 s:=REPLACE(s,"°",a);
 s:=REPLACE(s,"′","");
 s:=REPLACE(s,"″","");
 EXPR(s);
END;
EXPORT HMS➞(t)
BEGIN
 // t=hh.mmss
 LOCAL a,l,p,s:=STRING(t);
 a:=IFTE(3<HSeparator<9,",",".");
 s:=REPLACE(s,a,"°");
 p:=INSTRING(s,"°");
 l:=DIM(s)-p;
 IF l==1  OR l==3 THEN
   s:=s+"0";
 END;
 IF l>2 THEN
   s:=LEFT(s,p+2)+"′"+MID(s,p+3);
 END;
 HMS→(EXPR(s));
END;
EXPORT HMS┼(t1,t2)
BEGIN
 //t1,t2=hh.mmss 
 ➞HMS(HMS➞(t1)+HMS➞(t2));
END;
EXPORT HMS―(t1,t2)
BEGIN
 //t1,t2=hh.mmss
 ➞HMS(HMS➞(t1)-HMS➞(t2));
END;
Cela n'est pas évident à voir mais la flèche utilisée dans la définition des fonctions
est différente de la flèche utilisée dans les fonctions intégrées.

This is not easy to see but the arrow used in the definition of functions
is different from the boom used in built-in functions .

Faites un copier-coller du code, plutot que de le taper à la main.
Make a copy and paste of the code, rather than typing it in by hand .

Sorry for my english
Find all posts by this user
Quote this message in a reply
12-15-2015, 02:25 AM
Post: #4
RE: HMS commands
Hmmm I'm surprised it doesn't have the same feature as the old calculator! Thanks for your help though.

Do you know how to assign anything to the soft keys on the home page?
Find all posts by this user
Quote this message in a reply
12-16-2015, 01:59 PM
Post: #5
RE: HMS commands
If you wish to enter your angle in DMS form, first hit the "UNITS" key (do not hit the shift key first) and it will pop up a menu of expressions. Tap the lower right box to input DMS on the command line. Note use the round toggle button to advance between deg,min,sec then hit enter.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)