Post Reply 
H->HMS conversion HP-15C vs. HP42S vs HP67
09-10-2018, 07:31 AM (This post was last modified: 09-10-2018 08:32 AM by Pekis.)
Post: #41
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
Hello,

Please note the proposed patch in my DEG->DMS formula to fix the "60 seconds" bug by naturally rounding to internal precision:

INT(X*60) is transformed into INT(X*120/2)
INT(X) is transformed into INT(X*2/2)

(patched): DEG->DMS: (90*X+INT(X*120/2)+100*INT(X*2/2))/250
(unchanged): DMS->DEG: (250*X-INT(100*X)-60*INT(X))/90

What do you think of it ?
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 - Pekis - 09-10-2018 07:31 AM



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