Post Reply 
Extract from Time
10-12-2015, 06:52 AM
Post: #3
RE: Extract from Time
hello,

HMS-> will not do what you think/want.
HMS-> will convert a real number which is represent HMS values (with the decimal part in the [0 to 0,6[ range into a number with a decimal part in the [0..1[ range.

however the Time function does NOT return a number encoded in HMS, but a number DISPLAYED in HMS format (which is different).
To remove the HMS display flag, add that number to 0.
0+Time will return what you want (the 'format' of the first of 2 operands does take precedence over the format of the second one)...

HMS-> functions are there because old habits die hard, but HMS encoding is "bad" (as in crossing the streams"), as base 60 and base 10 conversions always lead to precision lost.
This is why Prime is privileging DISPLAY in HMS with internal encoding staying in decimal.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Extract from Time - Powersoft - 10-10-2015, 06:53 PM
RE: Extract from Time - Thomas_Sch - 10-10-2015, 09:02 PM
RE: Extract from Time - cyrille de brébisson - 10-12-2015 06:52 AM
RE: Extract from Time - Thomas_Sch - 10-12-2015, 06:57 AM
RE: Extract from Time - Joe Horn - 10-12-2015, 08:06 AM



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