Hi Andrew,
I think what you want is BCD, (Binary Code Decimal) lots of examples in here.