H->HMS conversion HP-15C vs. HP42S vs HP67
|
09-12-2018, 07:14 AM
Post: #52
|
|||
|
|||
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
(09-10-2018 04:28 PM)Albert Chan Wrote: Without error analysis (ULPs), you cannot get this right. Oops, of course. Uncanny how you can come up with counterexamples so easily. But then, instead of FP(100*H.MS) - which is the culprit- , all you need to do is to take H.MS*100 - IP(H.MS*100+0.25) instead. So, T := HMS*100; T := T - IP(T+0.25); T := HMS + T/150; HR := T + FP(T)/1.5; or, in RPN: Code: >LBL "DMS>" Seems to work in Free42 Binary. Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)