|
10100 is a binary number
which is equal to 20
in decimal .
See the following procedures
on how to convert a
binary to a decimal
number.
1 X 2n-1 =
1 x 25-1 = 1 x 24 = 16
0 X 2n-2 =
0 x 25-2 = 0 x 23 = 0
1 X 2n-3 =
1 x 25-3 = 1 x 22 = 4
0 X 2n-4 =
0 x 25-4 = 0 x 21 = 0
0 X 2n-5 =
0 x 25-5 = 0 x 20 = 0
_____________________________________________
20
|
n |
4=n-1 |
3=n-2 |
2=n-3 |
1=n-4 |
|
25-1 =
24 |
25-2 =
23 |
25-1 = 22 |
25-4 = 21 |
25-5 = 20 |
|
16 |
8 |
4 |
2 |
1 |
|
20 is a decimal number which is equal
to10100 binary
See the following procedures
on how to convert a
decimal to a
binary number.
The largest power of 2 that fits on
20 is 24
1 x 24
= 16 fits 20-16=4
0 x 23
= 0 does not fit 8>4
1 x 22
= 4 fits 4 - 4=0
0 x 21
= 0 does not fit
0 x 20
= 0 does not fit
_________________________
10100
|