in reply to Re: pack unpack charcount repetition
in thread pack unpack charcount repetition

>Seeing as all are below 128, you could fit two numbers per byte and save 50% space off the top. the first four bitxs would be $number[0] next four bits would be $number[1] etc.
to expand just parse the bits and form the array
this sounds like a great plan, ..but
just parse the bits and form the array,....
is just sitting there staring at me, could you show me?

Replies are listed 'Best First'.
Re: Re: Re: pack unpack charcount repetition
by cciulla (Friar) on Jun 09, 2003 at 12:10 UTC

    It ain't gonna happen. The maximum value you can store in four bits (a nibble) is decimal 15.

    Unless, of course, waswas-fng has access to a computer that uses a quantum bit that has more states than "off" and "on".