Post Reply 
Hours.Decimal Hours
01-20-2022, 07:25 AM
Post: #1
Hours.Decimal Hours
Got question on how to convert 100 second to Minute Second.

When I use the Casio calculator that have [H/M/S] function simply press

0 [H/M/S] 0 [H/M/S] 100 [H/M/S] display shown answer 0-01'40"

So 100 second is 1 minute and 40 second

How to calculate this on like HP-11C or HP-15C ?

I try on HP-11C by first do the 100 ÷ 60 and got 1.6667 then press [FRAC]

for only the fractional part 0.6667 and press [→H.MS] display answer 0.4000

So add that 1 minute back will get 1.4000

Is this suppose to be the right way to calculate this kind of problem?

Thank You

Gamo
Find all posts by this user
Quote this message in a reply
01-20-2022, 08:29 AM (This post was last modified: 01-20-2022 08:34 AM by ijabbott.)
Post: #2
RE: Hours.Decimal Hours
You don't need to press [FRAC]. Just convert the 1.6667 via [→H.MS] to 1.4000.

The H.MS conversion is being abused, so will not work if the number of seconds is not an integer.

To convert seconds to H.MS form properly, divide seconds by 3600 (or 60²) and press [→H.MS].

— Ian Abbott
Find all posts by this user
Quote this message in a reply
01-20-2022, 09:31 AM
Post: #3
RE: Hours.Decimal Hours
Thanks ijabbott

Just convert the 1.6667 via [→H.MS] to 1.4000

That's all.

Gamo
Find all posts by this user
Quote this message in a reply
01-20-2022, 06:25 PM (This post was last modified: 01-20-2022 08:43 PM by C.Ret.)
Post: #4
RE: Hours.Decimal Hours
(01-20-2022 09:31 AM)Gamo Wrote:  Just convert the 1.6667 via [→H.MS] to 1.4000

Hi,

This is only correct by chance ! And you may obtained an incorrect result with a different input.

The goal of the →H.MS instruction is to convert any time value into HH.MMSSs format (alternatively into angular DDD°MMSSs).

To convert 100 seconds the correct algorithm is to divide 100 by 3600 and then to shift-press the →H.MS key.
Dividing by 60 only works for integer seconds, in case of fractional seconds you will get incorrect tenth of second.


100/3600 is 0.0277778 which is converted by →H.MS into 0.01400 that indicate 0 : 1' 40.0"
Find all posts by this user
Quote this message in a reply
01-20-2022, 08:04 PM (This post was last modified: 01-20-2022 08:04 PM by Joe Horn.)
Post: #5
RE: Hours.Decimal Hours
Here's one way of doing it on the HP-15C which is not the most efficient but is easily understood:

Type 0.0001 (that's one second in HP's HMS format)
→H (to convert to decimal hours)
100 × (to multiply by 100)
→HMS (converts the result to 0.0140, that is, 0 hours, 1 minute, 40 seconds)

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
01-21-2022, 09:08 AM
Post: #6
RE: Hours.Decimal Hours
Thanks all for the answer.

Gamo
Find all posts by this user
Quote this message in a reply
Post Reply 




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