FORTRAN floating point accuracy problems
|
04-04-2016, 09:02 AM
Post: #28
|
|||
|
|||
RE: FORTRAN floating point accuracy problems
Can I chime in?
The following formulas, courtesy of John H. Meyers on comp.sys.hp48 do not require any fiddling at all: HR2HMS T := HR - FP(HR)*0.4; HMS := T - FP(T*100)*0.004; HMS2HR T := HMS + FP(HMS*100)/150; HR := T + FP(T)/1.5; Tried them on Free42S Binary. Both work like a charm. Code: 00 { 55-Byte Prgm } Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)