   *** CONVERT A HEXADECIMAL LIST TO BINARY AND OCTAL. ***

This HX2BN2OC.WK1 file, when loaded into 123 on the HP100LX or
HP200LX, will convert a four CHARACTER hexadecimal number into
the equivalent binary and octal formats.

*** BACKGROUND ***

	I needed a way to convert a list of hexadecimal numbers
into Binary and Octal numeric formats. I had a long list and
didn't want to manually type all the items into a calculator.
I couldn't find any Add-Ins that I could use, so I created
this cludge to get the job done.

	I had tried using nested "@IF" statements for
Hexadecimal to Binary formula, but, could not get all sixteen
binary combinations for a hexadecimal digit to fit on one line
of the formula.  I kept running into the 240 character limit
imposed by this version of 123, as implemented on the HP200LX.
I ended up using a rare 123 function called "@@(Location)".
This function is for finding information within a simple
lookup table. I place the 16 binary equivilents into a single
column as a simple lookup table.  (The lookup table approach
is much faster than the nested "@IF" statements, by the way). 
However, to simplify the logic, I did use nested "@IF"
statements for the Binary-to-Octal functions. 

	IMPORTANT: When entering data, use the single-quote 
(Shifted 6 on the HP200LX) to tell 123 the numbers entered are
to be treated as text. Also, include leading zeros; bit 
position and location are very important for both binary and
octal representations, so, you need to ensure leading zeros 
are accounted for.  For example, to convert 0023h, type the
single quote (Shifted 6), first, so that the Binary and Octal 
digits are positioned correctly. If the single quote is not
used and the hexadecimal number entered does not contain any 
letter from "A" to "F", it will be treated as a real number.
Anyway, if you just type in the number 23, you will get an
ERR.)

Good Luck!

Paul Stratton
E-Mail: Paul_Stratton@msn.com



*** LEGAL STUFF AND DISCLAIMER ***

	I place this little spreadsheet in the public domain.
If you find it useful, send me a note. I'll even accept
constructive criticism -- to a point...   ;-}

	By now everyone knows the legal mumbo jumbo by heart,
so let me paraphrase.  All the legal stuff means is that you
should not blame ME if this spreadsheet does not do everything
YOU might ever consider wanting IT to do. 

	This spreadsheet served MY limited purpose.  Don't
expect it to wash the dishes, the car, the laundry, or to take
out the trash for you. (It sure didn't do anything else for
ME!)
