Professional Documents
Culture Documents
Comp121 Pre-Final
Comp121 Pre-Final
COMPUTER FUNDAMENTALS
Number System 1
When we type some letters or words, the computer translates them in numbers as computers can
understand only numbers. A computer can understand positional number system where there are
only a few symbols called digits and these symbols represent different values depending on the
position they occupy in the number.
• The digit
• The position of the digit in the number
• The base of the number system (where base is defined as the total number of digits available in
the number system).
Chapter
Number System 1
Decimal Number System
The number system that we use in our day-to-day life is the decimal number system. Decimal
number system has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the
successive positions to the left of the decimal point represent units, tens, hundreds, thousands and
so on.
Each position represents a specific power of the base (10). For example, the decimal number
1234 consists of the digit 4 in the units position, 3 in the tens position, 2 in the hundreds position,
and 1 in the thousands position, and its value can be written as
Number System 1
As an engineer, you should understand the following number systems which are frequently used in
computers.
Number System 1
Binary Number System
• Uses two digits, 0 and 1.
• Also called base 2 number system
Example
Binary Number: 101012
Calculating Decimal Equivalent:
Number System 1
Examples:
1. (11011)2 =
2. (1101101)2 =
3. (10101011)2 =
4. (1011011)2 =
5. (1100110011)2 =
Chapter
Number System 1
Examples:
1. (11011)2 = 27
2. (1101101)2 = 109
3. (10101011)2 = 171
4. (1011011)2 = 91
5. (1100110011)2 = 819
Chapter
Number System 1
Octal Number System
• Uses eight digits, 0,1,2,3,4,5,6,7.
• Also called base 8 number system
Example
Octal Number: 125708
Calculating Decimal Equivalent
Number System 1
Examples:
1. (212)8 =
2. (647)8 =
3. (1203)8 =
4. (1764)8 =
5. (31452)8 =
Chapter
Number System 1
Examples:
1. (212)8 = 138
2. (647)8 = 423
3. (1203)8 = 643
4. (1764)8 = 1012
5. (31452)8 = 13098
Chapter
Number System 1
Hexadecimal Number System
• Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
• Letters represents numbers starting from 10. A = 10. B = 11, C = 12, D = 13, E = 14, F = 15.
• Also called base 16 number system
Example
Hexadecimal Number: 19FDE16
Calculating Decimal Equivalent:
Number System 1
Examples:
1. (2A1)16 =
2. (FB3A) 16 =
3. (90BA)16 =
4. (24D91)16 =
5. (FBBC)16 =
Chapter
Number System 1
Examples:
1. (2A1)16 = 673
2. (FB3A) 16 = 64 314
3. (90BA)16 = 37 050
5. (FBBC)16 = 64 444
Chapter
In this chapter, you will learn the conversion of one base number to another base number considering all the
base numbers such as decimal, binary, octal and hexadecimal with the help of examples. Here, the following
number system conversion methods are explained.
0000
Octal Numbers
0
Decimal Numbers
0
Hexadecimal Numbers
0
2
0001 1 1 1
0010 2 2 2
0011 3 3 3
0100 4 4 4
0101 5 5 5
0110 6 6 6
0111 7 7 7
1000 10 8 8
1001 11 9 9
1010 12 10 A
1011 13 11 B
1100 14 12 C
1101 15 13 D
1110 16 14 E
1111 17 15 F
Chapter
Solution: From the table, we can get the binary value of 8 and 9, hexadecimal base numbers.
8 = 1000 and 9 = 1001
Therefore, (89)16 = (10001001)2
Chapter