The Museum of HP Calculators

HP Forum Archive 09

[ Return to Index | Top of Index ]

HP-16C versus SR-22
Message #1 Posted by Joerg Woerner on 22 Dec 2002, 7:14 a.m.

Hello to all lucky owners of a HP-16C. Recently I received an oldfashioned Texas Instruments SR-22 and noticed that this rare beauty performs a conversion between a decimal floating point number to OCT, HEX and vice versa. Example:

1.23456789E12 converts to

2.175617660 E17 Base-8 or

1.1F71FB044 E0A Base-16

Highest decimal input is

9.999999999 E99 converts to

1.249AD258D E53

My question: Is the HP-16C - or any other known calculator - able to perform similar (stupid?) calculations ?

A picture is here: http://www.datamath.org/Desktop/sr-22.htm

Greetings from Germany, Joerg

BTW: Merry Christmas and Happy New Year plus Great calculator hunting plus all my best wishes that HP returns with a RPN calculator and stops selling rebadged Citizen stuff...

      
Re: HP-16C versus SR-22
Message #2 Posted by Vieira, Luiz C. (Brazil) on 22 Dec 2002, 9:22 a.m.,
in response to message #1 by Joerg Woerner

Hello, Joerg;

The HP16C works only with integers when in one of the four basis, i.e., both decimal point/radix mark key [.] ad enter exponent [EEX] are even disabled, they work only in floating point calcualtions. And in this mode, the HP16C works only with decimal numbers.

BTW, I'd send you an e-mail about it: I have a friend who own a PC200 and does not have a calculator to use with it. So, I am telling you that BA55 is travalling to another country, O.K.?

Good reading your posts here.

Best regards.

      
Re: HP-16C versus SR-22
Message #3 Posted by Les Bell [Sydney] on 22 Dec 2002, 5:56 p.m.,
in response to message #1 by Joerg Woerner

The HP 16C does perform conversions between floating point and the integer modes (and vice versa), though not in the most obvious way.

When converting from integer to float, it takes the values in the X and Y registers and converts them into y * 2 ^ x, with the result being left in the FP X register. Switching from float to integer does the reverse calculation.

This is not what most people expect, especially these days. However, the 16C manual does provide a couple of programs for converting between the 16C's floating point decimal format and IEEE 754 single-precision (32-bit) floating point.

Best,

--- Les

            
Re: HP-16C versus SR-22
Message #4 Posted by Vieira, Luiz C. (Brazil) on 22 Dec 2002, 10:55 p.m.,
in response to message #3 by Les Bell [Sydney]

Hi;

you're right. There is an IEEE standard for representing binary numbers (not integers) in a 32-bit word like this:

 s      e             f         (IEEE proposed format)
31 30     23 22               0 (bit #)

where s is the 1-bit signal, e is the 8-bit biased exponent and f is the 23-bit fraction.

As the HP16C representes floating point numbers in a ASCII fashion, the equivalence beteween the floating point numbers and the binary integers in the HP16 is accomplished with [FLOAT] n and any of the four base keys: [BIN], [OCT], [DEC] and [HEX]. When toggling from floating point to any of the integer bases, one binary integer is obtained from the values in Y and X registers, like this:

(integer in selected base) = Y . 2^X

This equivalence is preserved when toggling back.

The Programs for Format Conversion provided in the HP16C manual demonstrate how to convert from internal HP16C's floating point decimal and IEEE floating point binary (single precision) and back.

None of these operations are equivalent to the ones shown in the SR22, and I believe this is mostly because this calculator seems to allow binary numbers to be entered, not supported by the HP16C that only accepts single binary integers as input data.

Am I correct or I missed something?

Cheers.

      
Humor
Message #5 Posted by Mike on 23 Dec 2002, 10:56 a.m.,
in response to message #1 by Joerg Woerner

The HP-16C is a calculator.

The SR-22 is an airplane.

Sorry, couldn't resist.

            
Re: Humor
Message #6 Posted by Joerg Woerner on 25 Dec 2002, 6:12 a.m.,
in response to message #5 by Mike

Sure - a neat one. But as calculator it outdates the HP-16C about 10 years - and the HP perform worse in some kind of your everydays usage:

SR-22 vs. HP-16C

Keyboard: Real keys against Chicklet knobs

Display: Strong red LED readable without glasses at night

Base-16 conversions: Floating vs. Fixpoint

Battery usage: None vs. little bombs

So long, keep your humor ;-))

Merry Christmas and Happy New Year !

      
Re: HP-16C versus SR-22
Message #7 Posted by Chris Randle (UK) on 23 Dec 2002, 3:55 p.m.,
in response to message #1 by Joerg Woerner

Not a calculator, but Derive on my HP200LX can do essential stuff like pi to 1000 decimal places in binary (or any number base up to 36)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall