Post Reply 
H->HMS conversion HP-15C vs. HP42S vs HP67
09-06-2018, 07:36 PM (This post was last modified: 09-07-2018 01:25 PM by Albert Chan.)
Post: #17
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
(09-06-2018 05:31 PM)Dieter Wrote:  183,38 cannot be represented exactly as a binary value and its decimal equivalent may be 183,37999999999...
interpreted as 183 hours, 37 minutes and 99,99999... seconds. Et voilà: this indeed equals 183,6444444... hours.

Retro15C code is just sloppy. Number should be scaled and rounded before conversion.

183.379999 ... * 10000
= 1833800.00 (rounded to 9 digits, which should be what user really meant)
--> 183:38:00.00
--> 183.633333 ... (hours)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: H->HMS conversion HP-15C vs. HP42S vs HP67 - Albert Chan - 09-06-2018 07:36 PM



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