version 0.1

To build:
execute the maketoys script
./maketoys (or if . is in your path, a simple maketoys will do).

usage:
the programs are hex, oct and dec; put them somewhere in your path
if you want to keep them around.

Either hex or oct will accept any number of decimal integers as input,
(all on one line) and output either hexadecimal or octal numbers, 
one per line.

For example:
  hex 16 32 48
outputs:
    0x10
    0x20
    0x30

oct works the same way, but gives the appropriate output:
  oct 10 8
   012
   010
...with the traditional prepended zero.

dec lets you convert either hex or octal numbers back to decimal.
It is written with hex as the default, so if you simply input
  dec 10
...you'll get 
    16

Howeer, if you wish octal output, the first number should have
a zero prepended, as in 010. So a session might look like:
  dec 010
    8

Both variations continue in the first mode invoked, regardless of any
subsequent prefix. So:
  dec 0x10 010 10
    16
    16
    16
...is the expected result. So don't try to mix bases in the same
request!


d
north@znet.com


Why:
Because I couldn't find this exact utility on the net, and my
wife (who is 20x the programmer I am) wanted it. Since it was
within my realm of competence, I did it for her.
	It's a geek romance thang.
	Great if you want to use it, and fine if you want to 
make suggestions for additions or features. But bear in mind, 
there are lots of big, full-featured math programs. The idea
behind this one is to just get real quick answers to real simple
questions that come up fairly often.

ideas I'm considering:

1. A flag for octal in addition to the prepend trigger
2. binary conversions
3. arbitrary base -> dec conversions
4. Having all the results appear on the same line as an option.
