Easy Bugs
|
10-23-2014, 01:39 PM
(This post was last modified: 10-23-2014 01:41 PM by Eddie W. Shore.)
Post: #6
|
|||
|
|||
RE: Easy Bugs
(10-15-2014 09:53 PM)PANAMATIK Wrote: Another 'easy' bug concerns hexagesimal numbers. When I add times or convert hours with ->HMS I expect a result in Hours, Minutes, Seconds. But I get always Degrees, Minutes and Seconds. Any hexagesimal result is shown in Degrees, Minutes, Seconds. There is even a dedicated key for entry of degrees The HP-65 was the first calculator who had the ->D.MS key. The HP-25 had instead an ->H.MS key. Obviously there was no clear preference. Of course they didnt show units. This is a good idea, we should also include the inverse functions HMS>H and DMS>D. Here is a routine I recently programmed for DMS>D: DMSD(degrees, minutes, seconds) EXPORT DMSD(D,M,S) BEGIN LOCAL t; IF D==0 THEN t:=1; ELSE t:=SIGN(D); END; RETURN (ABS(D)+ABS(M/60)+ABS(S/3600)) *t; END; |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RE: Easy Bugs - Tim Wessman - 10-15-2014, 05:41 AM
RE: Easy Bugs - Claudio L. - 10-15-2014, 03:59 PM
RE: Easy Bugs - PANAMATIK - 10-15-2014, 09:53 PM
RE: Easy Bugs - Eddie W. Shore - 10-23-2014 01:39 PM
RE: Easy Bugs - PANAMATIK - 10-20-2014, 03:08 AM
RE: Easy Bugs - Wolfgang - 10-31-2014, 05:09 PM
RE: Easy Bugs - toml_12953 - 10-31-2014, 05:39 PM
RE: Easy Bugs - Marcus von Cube - 10-31-2014, 08:17 PM
RE: Easy Bugs - Wolfgang - 11-01-2014, 04:56 AM
|
User(s) browsing this thread: 1 Guest(s)