Start with a given binary string: 1111011111100
Start from the right. Should the last grouping not have four bits, fill in with 0
.
1
1110
1111
1100
= 0001
1110
1111
1100
1
14
, 15
12
Replace two character integers with a single alphabetic character, 10=A, 11=B, 12=C, 13=D, 14=E, 15=F. The maximum decimal value for a 4-bit grouping is 15, as demonstrated in this exapmle.
1
, E
, F
, C
1111011111100
= #1EFC