The Museum of HP Calculators

HP Forum Archive 14

[ Return to Index | Top of Index ]

HP33S bug subtracting degrees from minutes?
Message #1 Posted by John P on 18 Mar 2005, 11:00 a.m.

Is the following a known HP33S bug?

Subtract ONE DEGREE from ONE MINUTE and you should get NEGATIVE 0 DEGREES 59 SECONDS. However, the HP33S returns NEGATIVE 0 DEGREES 58 MINUTES 20 SECONDS.

If you subtract ONE DEGREE from 4 MINUTES, you should get NEGATIVE 56 MINUTES, but instead, the HP33S returns NEGATIVE 55 MINUTES 20 SECONDS.

Am I doing something wrong?

      
Re: HP33S bug subtracting degrees from minutes?
Message #2 Posted by JohnP on 18 Mar 2005, 11:06 a.m.,
in response to message #1 by John P

>> you should get NEGATIVE 0 DEGREES 59 SECONDS

Sorry about the typo... I should have typed NEGATIVE 0 DEGREES 59 MINUTES 0 SECONDS...

      
Re: HP33S bug subtracting degrees from minutes?
Message #3 Posted by Norris on 18 Mar 2005, 12:35 p.m.,
in response to message #1 by John P

The ->HMS function on the 33S has a bug; it does not always work correctly with negative numbers. It apparently can be trusted with positive numbers. This has been documented by HP in the "User's Manual Update" at

http://h10032.www1.hp.com/ctg/Manual/c00251639.pdf

I programmed a simple "alternative" ->HMS function on my 33S, which is assigned to XEQ 5 (instead of right-shift 5). The "alternative" function checks to see if the input is negative. If it is, then it changes the sign, runs ->HMS, and restores a negative sign to the result. The program uses flag 4.

LBL U
CF 4
x<0 ?
SF 4
FS? 4
+/-
->HMS
FS? 4
+/-
CF 4
RTN

You should also be aware of the polar conversion bug, which is also documented in the "User's Manual Update"


[ Return to Index | Top of Index ]

Go back to the main exhibit hall