Number System in Computer
Number System in Computer
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.
A value of each digit in a number can be determined using
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).
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
(1x1000)+ (2x100)+ (3x10)+ (4xl)
(1x103)+ (2x102)+ (3x101)+ (4xl00)
1000 + 200 + 30 + 4
1234
As a computer programmer or an IT professional, you should understand the following number systems which
are frequently used in computers.
S.N.
Last position in a binary number represents a x power of the base (2). Example 2x where x represents
the last position - 1.
Example
Binary Number : 101012
Calculating Decimal Equivalent:
Step
Binary
Number
Decimal Number
Step
1
101012
Step
2
101012
(16 + 0 + 4 + 0 + 1)10
Step
3
101012
2110
Octal
Number
Decimal Number
Step
1
125708
Step
2
125708
Step
3
125708
549610
Example
Hexadecimal Number: 19FDE16
Calculating Decimal Equivalent:
Step
Binary
Number
Decimal Number
Step 1
19FDE16
Step 2
19FDE16
Step 3
19FDE16
Step 4
19FDE16
10646210
number.
Step 3 - Divide the quotient of the previous divide by the new base.
Step 4 - Record the remainder from Step 3 as the next digit (to the left) of the new base number.
Repeat Steps 3 and 4, getting remainders from right to left, until the quotient becomes zero in Step 3.
The last remainder thus obtained will be the most significant digit (MSD) of the new base number.
Example
Decimal Number : 2910
Calculating Binary Equivalent:
Step
Operation
Result
Remainder
Step 1
29 / 2
14
Step 2
14 / 2
Step 3
7/2
Step 4
3/2
Step 5
1/2
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first
remainder becomes the least significant digit (LSD) and the last remainder becomes the most significant digit
(MSD).
Decimal Number : 2910 = Binary Number : 111012.
Other base system to Decimal System
Steps
Steps 1 - Determine the column (positional) value of each digit (this depends on the position of the digit
Example
Binary Number: 111012
Calculating Decimal Equivalent:
Step
Binary
Number
Decimal Number
Step
1
111012
Step
2
111012
(16 + 8 + 4 + 0 + 1)10
Step
3
111012
2910
Example
Octal Number : 258
Calculating Binary Equivalent:
Step 1 : Convert to Decimal
Step
Octal
Number
Decimal Number
Step
1
258
Step
2
258
(16 + 5 )10
Step
3
258
2110
Operation
Result
Remainder
Step 1
21 / 2
10
Step 2
10 / 2
Step 3
5/2
Step 4
2/2
Step 5
1/2
Binary Number
Octal Number
Step 1
101012
010 101
Step 2
101012
28 58
Step 3
101012
258
Example
Octal Number : 258
Calculating Binary Equivalent:
Step
Octal Number
Binary Number
Step 1
258
210 510
Step 2
258
0102 1012
Step 3
258
0101012
Binary Number
Hexadecimal Number
Step 1
101012
0001 0101
Step 2
101012
110 510
Step 3
101012
1516
Example
Hexadecimal Number
Binary Number
Step 1
1516
110 510
Step 2
1516
00012 01012
Step 3
1516
000101012
Hardware represents the physical and tangible components of a computer i.e. the components that can be seen
and touched.
Examples of Hardware are following:
Hardware and software are mutually dependent on each other. Both of them must work together to make a computer
produce a useful output.
Hardware without set of programs to operate upon cannot be utilized and is useless.
To get a particular job done on the computer, relevant software should be loaded into the hardware
If hardware is the 'heart' of a computer system, then software is its 'soul'. Both are complimentary to each other.
Software is a set of programs, which is designed to perform a well-defined function. A program is a sequence
of instructions written to solve a particular problem.
There are two types of software
System Software
Application Software
System Software
The system software is collection of programs designed to operate, control, and extend the processing
capabilities of the computer itself. System software are generally prepared by computer manufactures. These
software products comprise of programs written in low-level languages which interact with the hardware at a
very basic level. System software serves as the interface between hardware and the end users.
Some examples of system software are Operating System, Compilers, Interpreter, Assemblers etc.
Close to system
Fast in speed
Difficult to design
Difficult to understand
Less interactive
Smaller in size
Difficult to manipulate
Application Software
Application software products are designed to satisfy a particular need of a particular environment. All
software applications prepared in the computer lab can come under the category of Application software.
Application software may consist of a single program, such as a Microsoft's notepad for writing and editing
simple text. It may also consist of a collection of programs, often called a software package, which work
together to accomplish a task, such as a spreadsheet package.
Examples of Application software are following:
Payroll Software
Microsoft Word
Microsoft Excel
Microsoft Powerpoint
Close to user
Easy to design
More interactive
Slow in speed
Easy to understand