The following examples are related to the work covered in WEEK 18.
0
Place values are 16 = 1 decimal
1
16 = 16 decimal
2
16 = 16 x 16 = 256 decimal
3
16 = 16 x 16 x 16 = 4096 decimal
So AD13 = A x 4096 + D x 256 + 1 x 16 + 3 x 1
4 bit binary values are A = 1010
D = 1101
1 = 0001
C = 1100
0
Place values are 2 = 1 decimal
1
2 = 2 "
2
2 = 4 "
3
2 = 8 "
4
2 = 16 "
5
2 = 32 "
6
2 = 64 "
So decimal value is 1 x 64 + 0 x 32 + 0 x 16 + 1 x 8 + 1 x 4 + 1 x 2 + 1 x 1 which is