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
 Eddie W. Shore Senior Member Posts: 1,047 Joined: Dec 2013
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.
The Prime now has the HMS() function but shows Degrees. Its has mixed both features.
For an 'easy' fix of this problem, I would suggest to add the new function DMS() which is identical to HMS() but shows the result in degrees, and HMS() should display the result as hours like 12h 59m 59s.
But I dont see an easy way to enter hexagesimal hours without a dedicated new key in addition to the Shift a b/c key

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 Easy Bugs - PANAMATIK - 10-15-2014, 05:10 AM 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)