4 ms·
I have 14 RPN and 7 algebraic calculators, so you can say that I prefer RPN 2 to 1 over algebraic models. About 15 years ago, I was gifted a 1986 12C by our co
by mmcgaha 6y ago
I have 14 RPN and 7 algebraic calculators, so you can say that I prefer RPN 2 to 1 over algebraic models.
About 15 years ago, I was gifted a 1986 12C by our cost accountant. This thing was beat up, missing the badge, and generally nasty; given that and the fact that it is a financial calculator made it pretty much ignorable.
Over the years, the batteries would die in my other calculators and I would reach for that 12C more and more. Eventually the 12C became my main desktop four-banger. Now main did not mean only because I need something to convert between dec and hex, so I also have a TI-36x solar on my desk.
Don't get me wrong, I am a huge fan of the early 90s incarnation of the 36x but I really don't want two calculators on my desk. So last night after reading this thread I was inspired to use some of the programmable features of my 12C and write decimal/hexadecimal conversion routines.
And here are the routines:
DEC -> HEX: GTO 00
Input integer 0-255
Result format is nibble.nibble
e.g. 10.15 = AF
12.05 = C5
HEX -> DEC: GTO 15
Input format is nibble.nibble
e.g. enter 14.13 = ED
1.11 = 1B
Result is an integer
01 16
03 /
04 DUP
05 INTG
06 SWAP
07 FRAC
08 .16
11 *
12 +
13 GTO 00
14 R/S
15 DUP
16 INTG
17 16
19 *
20 SWAP
21 FRAC
22 100
25 *
26 +
27 GTO 14
Now this formerly disrespected lowly financial calculator has grown to be not only my favorite four-banger but now the only calculator I will ever need at my desk.