Hardware Reference
In-Depth Information
Example B.1
Convert the decimal number 73 to binary.
Solution: The procedure of conversion is shown in Figure B.1.
remainder
2
73
1
Least significant digit
2
36
0
2
18
0
2
9
1
2
4
0
2
2
0
Most significant digit
2
1
1
0
Figure B.1 An example of decimal-
to-binary conversion
73 5 1001001 2
Example B.2
Convert the decimal number 95 to binary.
Solution: The repeated division-by-2 process is shown in Figure B.2.
remainder
2
95
1
Least significant digit
2
47
1
2
23
1
2
11
1
2
5
1
2
2
0
2
1
1
Most significant digit
0
Figure B.2 Another example of decimal-
to-binary conversion
95 5 1011111 2
Search WWH ::




Custom Search