in reply to
What if you use
I like your approach and I think this is what you meant:
This seems the most straightforward to me. I have a personal preference of hex over octal.
Update: Oops. At first I only saw JavaFan's pack approach in the reply below this. Be he already covered this approach too. Sorry for duplicates.
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (59 votes),