It is used to represent numbers in the computer.They are 4 types of number systems used in the computer.
Number system |
Base |
Used digits |
Example |
Binary |
2 |
0,1 |
(11110000) 2 |
Octal |
8 |
0,1,2,3,4,5,6,7 |
(360)8 |
Decimal |
10 |
0,1,2,3,4,5,6,7,8,9 |
(240) 10 |
Hexadecimal |
16 |
0,1,2,3,4,5,6,7,8,9, A,B,C,D,E,F |
(F0)16 |
Characters Used in Each Number system
Hexadecimal |
Decimal |
Octal |
Binary |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
10 |
3 |
3 |
3 |
11 |
4 |
4 |
4 |
100 |
5 |
5 |
5 |
101 |
6 |
6 |
6 |
110 |
7 |
7 |
7 |
111 |
8 |
8 |
10 |
1000 |
9 |
9 |
11 |
1001 |
A |
10 |
12 |
1010 |
B |
11 |
13 |
1011 |
C |
12 |
14 |
1100 |
D |
13 |
15 |
1101 |
E |
14 |
16 |
1110 |
F |
15 |
17 |
1111 |
|