Post Reply 
H->HMS conversion HP-15C vs. HP42S vs HP67
09-13-2018, 08:47 AM (This post was last modified: 09-13-2018 11:34 AM by Pekis.)
Post: #56
RE: H->HMS conversion HP-15C vs. HP42S vs HP67
Hello,

Could this formula be tested on various machines ?

I'm trying to help rounding up to next integer when it's very close.
So, I transformed
INT(X) into INT(X+0.75*(1-FP(X)))
and INT(60*X) into INT(60*X+0.75*(1-FP(60*X)))

the DEG->DMS(X) would then be
DEG->DMS(X)=(90*X+INT(60*X+0.75*(1-FP(60*X)))+100*INT(X+0.75*(1-FP(X))))/250

Or if using INT only:
DEG->DMS(X)=(90*X+INT(60*X+0.75*(1-60*X+INT(60*X)))+100*INT(X+0.75*(1-X+INT(X))))/250

I think it's worth trying and I'm ready to withstand the expected bombing Smile

Thanks
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-13-2018 08:47 AM



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