The Museum of HP Calculators

HP Forum Archive 10

[ Return to Index | Top of Index ]

HMS "bug" again, HP11C
Message #1 Posted by Scott Coburn on 22 Feb 2003, 5:04 p.m.

I noticed an odd behaviour in my HP11C in the HMS functions. Looking through the archives I see that this behaviour was found in the 28S and 42S. When I do 2.12 g->H 1.37 g->H (subtract) f->H.MS I get an answer of 0.3460 instead of 0.3500. As noted in the other posts the answer is "correct" but not what I was expecting. I just wanted to add this bit of information to the archives here. (I have just checked with an HP32SII, it does this also.) Cheers.

      
Re: HMS "bug" again, HP11C
Message #2 Posted by Vieira, Luiz C. (Brazil) on 22 Feb 2003, 5:55 p.m.,
in response to message #1 by Scott Coburn

Hi;

hit the [f][PREFIX] key and you'll see:

[3459999999]
As exprected, internally we have the rounding error. The problem is that 3.459999999 is a number that you can key in anytime. Tha HP11C does not "know" it's an H.MMSSssss representation. I agree with the fact the rouning error should not occur, but the rounding-up from 3.459999999 to 3.4600 is acceptable for an ordinary number.

Is that what you read about?

Cheers.

            
Re: HMS "bug" again, HP11C
Message #3 Posted by Spice_Man on 22 Feb 2003, 6:05 p.m.,
in response to message #2 by Vieira, Luiz C. (Brazil)

Hey you beat me to it Vieira!

Spicey

                  
Re: HMS "bug" again, HP11C
Message #4 Posted by Vieira, Luiz C. (Brazil) on 22 Feb 2003, 9:15 p.m.,
in response to message #3 by Spice_Man

Hey, Spice!

Good to know we are all in the same team... I'd rather never having you, guys, in an opposite side! And when I write you , I mean you all...

Good to know that we use our knowledge this way. I'm honored.

The best regards, Spice!

Luiz C. Vieira

      
Re: HMS "bug" again, HP11C
Message #5 Posted by Spice_Man on 22 Feb 2003, 6:04 p.m.,
in response to message #1 by Scott Coburn

I think its just a rounding error. I think its just trying to display 0.3459999999999... but its getting rounded up to 0.3460000. In fact, you can see this is a rounding error by changing the display of the result to scientific notation by hitting f->SCI 9. You get 3.459999-01.

Spicey

            
Re: HMS "bug" again, HP11C
Message #6 Posted by Scott Coburn on 24 Feb 2003, 10:33 a.m.,
in response to message #5 by Spice_Man

Well, if I don't have my HP11C here at work, but on my 32SII if I do FIX 9 I get 0.346000000, not 0.34599999... And, if I do SCI 9 I get 3.46000000E-1 etc. I guess I am not trying to argue that it is a fully qualified bug, that is why I put "bug" in quotes in the Subject line. I was just adding to the thread in the HP Forum Archive 6 (go to that page and do a browser search for "HMS").

      
Re: HMS "bug" again, HP11C
Message #7 Posted by R Lion on 23 Feb 2003, 2:22 a.m.,
in response to message #1 by Scott Coburn

Try RND ->H ->H.MS for avoiding the error.

Raul

      
Re: HMS "bug" again, HP11C
Message #8 Posted by R Lion on 23 Feb 2003, 2:35 a.m.,
in response to message #1 by Scott Coburn

...and using HMS- (in the 42S/48GX) you'll get the desired 0.35

Raul


[ Return to Index | Top of Index ]

Go back to the main exhibit hall