->HR <-> ->HMS



#7

I need the equation to convert ->HR <-> ->HMS. Thank you !!!


#8

I don't believe there is an equation, just some steps you
you have to follow:

-write down the degrees

-take the fractional part and multiply by 60

-the whole number is the minutes

-take the new fractional part and multiply by 60

-the whole number is the seconds and the fractional

part is the fractional seconds.

There should be a button to do all this on a good
calculator.

Edited: 1 Sept 2004, 10:34 p.m.

#9

Hi man, if you really want to have a single équation, I show you what I've found during the last 15 minutes.

H->HMS
f(x)=IP(x)+(1/100)*IP(60.FP(x))+(1/10000)*IP(3600*(FP(x)-(1/60)*IP(60*FP(x))))

HMS->H
f(x)=IP(x)+(1/60)*IP(100*FP(x))+(1/3600)*IP(10000*(FP(x)-(1/100)*IP(100*FP(x)))).

You must enter 15h28mn15s as 15.2815

I've tried it with some examples and I think it's ok.
I hope it will help you.


Edited: 2 Sept 2004, 9:19 a.m.

#10

Also, compare to the equation I wrote in a previous post:

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv014.cgi?read=61505


Edited: 2 Sept 2004, 10:48 a.m.


#11

Thank you


#12

You are welcome!

BTW, I had too many parenthesis:

It should be:

H.MS-->HR:
(FP(100*A)/0.6+IP(FP(A)*100))/60+IP(A)

And Also, here is my solution t'other way 'round:

HR-->H.MS:

IP(x)+IP(FP(x)*60/100+FP(FP(x)*60)*60/10000


Note that the precedence rules of the above text is as per the HP48 series.


These are nice and compact.


Best regards,

Bill


Possibly Related Threads...
Thread Author Replies Views Last Post
  HMS commands Geoff Quickfall 6 730 10-14-2013, 06:27 PM
Last Post: Tim Wessman
  8/60 -> HMS PGILLET 47 3,169 05-04-2013, 11:38 AM
Last Post: Thomas Klemm
  Re: more HMS, aTIME, 34s display, 41c bugs? Christopher Johnson 0 219 03-05-2012, 11:20 AM
Last Post: Christopher Johnson
  more HMS, aTIME, 34s display, 41c bugs? Christopher Johnson 2 341 02-25-2012, 10:06 PM
Last Post: Luiz C. Vieira (Brazil)
  wp 34s vs 41c hms+ Christopher Johnson 9 743 02-23-2012, 10:04 AM
Last Post: Christopher Johnson
  H to HMS Bug in HP 15C LE? Eddie W. Shore 2 331 09-26-2011, 11:22 AM
Last Post: Eddie W. Shore
  adding time segmetns (HMS+)?? with 41CX? Sam Samaha 15 1,149 02-23-2011, 01:22 AM
Last Post: Ángel Martin
  HMS+, HMS-, HMS, HR: LEX files Geoff Quickfall 2 364 12-12-2010, 03:52 PM
Last Post: Geoff Quickfall
  Electri-Calc LT bill platt 6 611 12-04-2008, 11:26 PM
Last Post: bill platt
  Formulas for ->HMS & ->HR Pekis 0 214 06-08-2008, 05:48 PM
Last Post: Pekis

Forum Jump: