head.daveops.net

Snippets for yer computer needs

Binary Coded Decimal

Binary Coded Decimal

| Decimal | Binary | |:——–|:——–| | 0 | 0 0 0 0 | | 1 | 0 0 0 1 | | 2 | 0 0 1 0 | | 3 | 0 0 1 1 | | 4 | 0 1 0 0 | | 5 | 0 1 0 1 | | 6 | 0 1 1 0 | | 7 | 0 1 1 1 | | 8 | 1 0 0 0 | | 9 | 1 0 0 1 |