BinaryLab LandonSmith
BinaryLab LandonSmith
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Result of power of 2
0 0 0 1 0 1 1 1 Add the values
0 0 0 16 0 4 2 1 23
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Result of power of 2
0 1 0 1 0 1 0 1 Add the values
0 64 0 16 0 4 0 1 85
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Result of power of 2
1 1 1 0 0 1 0 0 Add the values
128 64 32 0 0 4 0 0 228
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Result of power of 2
1 1 1 1 1 1 1 1 Add the values
128 64 32 16 8 4 2 1 255
Section 3
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Results of power of 2
128 64 32 16 8 4 2 1 Decimal is: 255
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Results of power of 2
0 0 32 16 8 4 2 1 Decimal is: 31
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Results of power of 2
0 64 32 16 0 0 0 0 Decimal is:48
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Results of power of 2
128 0 32 0 8 0 2 0 Decimal is: 42
27 26 25 24 23 22 21 20 Power of 2
128 64 32 16 8 4 2 1 Results of power of 2
0 64 0 16 0 4 0 1 Decimal is: 21
Section 4
In order to convert to hexadecimals, we must firs separate the byte into two parts of 4 or called a
nibble.
Example
11001010
1100 1010
23 22 21 20 Decimal 23 22 21 20 Decimal
number
8 4 2 1 8 4 2 1 Number
12 1
1 1 0 0 0 1 0 10
8+2=12 =C 8+2=10=A
Hexadecimal =CA
1111 1110
FE
23 22 21 20 Decimal 23 22 21 20 Decimal
number
8 4 2 1 8 4 2 1 Number
15 1
1 1 1 1 1 1 0 14
1100 0010
C2
23 22 21 20 Decimal 23 22 21 20 Decimal
number
8 4 2 1 8 4 2 1 Number
12 0
1 1 0 0 0 1 0 2
1011 0100
B4
23 22 21 20 Decimal 23 22 21 20 Decimal
number
8 4 2 1 8 4 2 1 Number
11 0
8 0 2 1 4 0 0 4
0010 0100
24
23 22 21 20 Decimal 23 22 21 20 Decimal
number
8 4 2 1 8 4 2 1 Number
2 0
0 0 1 0 1 0 0 4
Section 5
Translating Hexadecimals numbers to decimals
27 26 25 24 23 22 21 20 Byte
128 64 32 16 8 4 2 1 42
`ZA 0 1 0 1 0 1 0 Step 2
23=8 22=4 21=2 20=1 23=8 22=4 21=2 20=1 Nibble
0 0 1 0 1 0 1 0 Step 1
Decimal = 42
2 10=A
27 26 25 24 23 22 21 20 Byte
128 64 32 16 8 4 2 1 61
0 0 1 1 1 1 0 1 Step 2
23=8 22=4 21=2 20=1 23=8 22=4 21=2 20=1 Nibble
0 0 1 1 1 1 0 1 Step 1 Decimal=61
3 D
27 26 25 24 23 22 21 20 Byte
128 64 32 16 8 4 2 1 107
0 1 1 0 1 0 1 1 Step 2
23=8 22=4 21=2 20=1 23=8 22=4 21=2 20=1 Nibble
0 1 1 0 1 0 1 1 Step 1 Decimal=107
6 B
27 26 25 24 23 22 21 20 Byte
128 64 32 16 8 4 2 1 156
1 0 0 1 1 1 0 0 Step 2
23=8 22=4 21=2 20=1 23=8 22=4 21=2 20=1 Nibble
1 0 0 1 1 1 0 0 Step 1
9 C
Decimal=156