H->HMS conversion HP-15C vs. HP42S vs HP67
|
09-09-2018, 08:51 AM
(This post was last modified: 09-09-2018 08:52 AM by Werner.)
Post: #36
|
|||
|
|||
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
A better HMS formula, courtesy of John H. Meyers in comp.sys.hp48, long ago:
H.MS=H.-FP(H.)*0.4-FP((H.-FP(H.)*0.4)*100)*0.004 or T := H.- FP(H.)*0.4 ; H.MS := T - FP(T*100)*0.004 ; translated into RPN that would be ENTER FRC .4 x - 1E4 % FRC 4E-3 x - At least, it returns 9.59599999999 for 9.99999999999 .. There's an equivalent HR formula: H.=H.MS+FP(H.MS*100)/150+FP(H.MS+FP(H.MS*100)/150)/1.5 or T := H.MS + FP(H.MS*100)/150; H. := T + FP(T)/1.5; Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)