in reply to Base10 to Base2.

What do you mean by "decimal" and "binary"? Do you mean string representations of decimal and binary? Do a search for "decimal binary" and you will find some useful discussions.

On a side note, why don't you want to use pack or unpack? The seemingly gratuitous restriction smells like homework...

-- Mike

--
just,my${.02}