The Museum of HP Calculators

HP Forum Archive 21

 HMS commandsMessage #1 Posted by Geoff Quickfall on 14 Oct 2013, 1:41 a.m. In an app/program I want to inputs the hexagesimal number 2.3 (02:30) and then convert it to decimal (2.5) I see how to do this in home or cas using ->HMS(2'30") or HMS->(2'30"). But how do I make an INPUT command imbedded in the program to convert 2.30 (hrs.min) into 2.5 (decimal). That is using old terms: 2.5 (2 hours decimal 5) ENTER ->HMS 2.3 (2 hours 30 minutes) Or 2.3 (2 hours 30 minutes) HMS-> 2.5 (2 hours decimal 5) Thanks! Edited: 14 Oct 2013, 1:43 a.m.

 Re: HMS commandsMessage #2 Posted by R. Pienne on 14 Oct 2013, 5:19 a.m.,in response to message #1 by Geoff Quickfall What type of machine are you using?

 Re: HMS commandsMessage #3 Posted by Marcus von Cube, Germany on 14 Oct 2013, 1:05 p.m.,in response to message #2 by R. Pienne I'm pretty sure Geoff is asking for a solution on the Prime.

 Re: HMS commandsMessage #4 Posted by Geoff Quickfall on 14 Oct 2013, 4:26 p.m.,in response to message #3 by Marcus von Cube, Germany Yes, having trouble asking for an input on a program in a simple dceimal time representing a hexagesimal number. best explained with an example: Old school: KEY PRESS DISPLAY 2.30 2.30 HR (HMS->) 2.50 This involves four keystrokes. Converting back an forth was easy. Now to convert it is: HMS->(2'30") 2.5 This involves nine keystrokes! So in a nutshell I want the program to prompt for a hexagesimal number in the form of the old school format '2.3' and convert that to '2.5' decimal format. At the moment I need to input '2.3' by invoking the hexagesimal shift key and inputting with the tags, degrees, minutes and seconds. Or is there a simple HMS command, (can't find it). Cheers, Geoff

 Re: HMS commandsMessage #5 Posted by Tim Wessman on 14 Oct 2013, 5:01 p.m.,in response to message #4 by Geoff Quickfall There is an HMS-> and ->HMS. Easiest way to get them for use in your program is look under the "more" category in your CMDS menu button in the editor. If you mean readily available in a menu somewhere for use inside the input box, then no. However, there is a template item specifically for entering without needing to do shift a b/c over and over. Look in the template key (the "C" button) down in the bottom right. TW Edited: 14 Oct 2013, 5:02 p.m.

 Re: HMS commandsMessage #6 Posted by Geoff Quickfall on 14 Oct 2013, 5:35 p.m.,in response to message #5 by Tim Wessman thanks Tim, i can't say it enough, i haven't had this much fun programming since the 25, 65, 67, 41C series, 71B. Never caught on to RPL as much but this is addictive. "If you mean readily available in a menu somewhere for use inside the input box, then no" thats what i was trying to do ;-O Yes I see the HMS functions, just trying to be lazy and make the code do the work. Edited: 14 Oct 2013, 5:36 p.m.

 Re: HMS commandsMessage #7 Posted by Tim Wessman on 14 Oct 2013, 6:27 p.m.,in response to message #6 by Geoff Quickfall Well, glad you are having fun. Keep poking holes in things and hopefully it will give us more ways to make it better.

Go back to the main exhibit hall