H->HMS conversion HP-15C vs. HP42S vs HP67
|
09-18-2018, 04:56 PM
Post: #62
|
|||
|
|||
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
(09-13-2018 01:46 PM)Albert Chan Wrote: Before the fix, we may see 60 seconds, sometimes 60 minutes, but it is accurate. After some thinking, even the original formula is not safe ... Example, angle = 9.20 degrees: X = 9.19999 99999 99999 3 (degree), DEG->DMS(X) = 9.11999 99999 99999 2 Unless DD.MMSS allowed round-off, to 9.12, above just hit a 40 seconds bug. This is a proposed fix: Code: def dms_to_deg(x): New deg_to_dms(X) = 9.12000 00000 00001 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 21 Guest(s)