COA Chapter 3
COA Chapter 3
8 Octal 0-7
10 Decimal 0-9
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Computer Application Prepared byDagne W. 9
Conversion from One Base to Another
A number that is represented in any base can be converted to
decimal using the following steps:
Therefore, the general form of the given number is:
X= an x 10n + … + a1x101+a0x100 + a-1 x 10-1 + … + a-m x 10-m
n
= ∑ ai x 10i
i= -m
Step 1 Explained:
To convert a decimal integer to a base B integer number
1. Divide the given integer by the base B
2.Repeat step 1 until a 0 quotient is obtained.
Finally write the bits from bottom to top
Division process
Note for fraction part multiply by base and write the
bits from top to bottom(and take left side number) for
fraction after multiplication
Ans: (101001)