Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Number System: "A Set of Values Used To Represent Different Quantities Is Known As Number System"

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Chapter 1

Number System
A set of values used to represent different quantities is
known as Number System".
Some important number systems are as follows.
Decimal number system
Binary number system
Octal number system
Hexadecimal number system
Number System and Description
1. Binary Number System
Base 2. Digits used : 0, 1

2. Octal Number System


Base 8. Digits used : 0 to 7

3. Hexa Decimal Number System


Base 16. Digits used : 0 to 9, Letters used : A- F
Decimal system: The Decimal Number System consists of ten
digits from 0 to 9. These digits can be used to represent any
numeric value. The base of decimal number system is 10. It is the
most widely used number system. The value represented by
individual digit depends on weight and position of the digit.
Each number in this system consists of digits which are located at
different positions. The position of first digit towards left side of
Nirmala Memorial Foundation college of Commerce and Science

Page 1

the decimal point is 0. The position of second digit towards left


side of the decimal point is 1. Similarly, the position of first digit
towards right side of decimal point is -1. The position of second
digit towards right side of decimal point is -2 and so on.
The value of the number is determined by multiplying the digits
with the weight of their position and adding the results. This
method is known as expansion method. The rightmost digit of
number has the lowest weight. This digit is called Least Significant
Digit (LSD). The leftmost digit of a number has the highest weight.
This digit is called Most Significant Digit (MSD). The digit 7 in the
number 724 is most significant digit and 4 is the least significant
digit.

Decimal to Binary conversion: The following technique, called


the (Division Remainder Technique) is easiest & simple method
used to convert decimal to binary numbers.

Nirmala Memorial Foundation college of Commerce and Science

Page 2

2. Binary Number System: Digital computer represents all


kinds of data and information in the binary system. Binary
Number System consists of two digits 0 and 1. Its base is 2. Each
digit or bit in binary number system can be 0 or 1. A combination
of binary numbers may be used to represent different quantities
like 1001. The positional value of each digit in binary number is
twice the place value or face value of the digit of its right side.
The weight of each position is a power of 2.

Characteristics of binary number system are as follows:


Uses two digits, 0 and 1.
Also called base 2 number system
Each position in a binary number represents a 0 power of the
base (2). Example 20
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

((1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1


x 20))10

Step 2 101012

(16 + 0 + 4 + 0 + 1)10

Step 3 101012

2110

Note : 101012 is normally written as 10101.

Nirmala Memorial Foundation college of Commerce and Science

Page 3

3. Octal Number System:


Characteristics of octal number system are as follows:
Uses eight digits, 0,1,2,3,4,5,6,7.
Also called base 8 number system
Each position in an octal number represents a 0 power of the
base (8). Example 80
Last position in an octal number represents a x power of the
base (8). Example 8x where x represents the last position - 1.
Example
Octal Number : 125708
Calculating Decimal Equivalent:
Step

Octal
Number

Decimal Number

Step 1 125708

((1 x 84) + (2 x 83) + (5 x 82) + (7 x 81) + (0


x 80))10

Step 2 125708

(4096 + 1024 + 320 + 56 + 0)10

Step 3 125708

549610

Note : 125708 is normally written as 12570.


4. Hexadecimal Number System
Characteristics of hexadecimal number system are as
follows:
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
Nirmala Memorial Foundation college of Commerce and Science

Page 4

Each position in a hexadecimal number represents a 0 power of


the base (16). Example 160
Last position in a hexadecimal number represents a x power of
the base (16). Example 16x where x represents the last position
- 1.

Example
Hexadecimal Number : 19FDE16
Calculating Decimal Equivalent:
Step

Binary
Number

Decimal Number

Step 1 19FDE16

((1 x 164) + (9 x 163) + (F x 162) + (D x


161) + (E x 160))10

Step 2 19FDE16

((1 x 164) + (9 x 163) + (15 x 162) + (13 x


161) + (14 x 160))10

Step 3 19FDE16

(65536+ 36864 + 3840 + 208 + 14)10

Step 4 19FDE16

10646210

Note : 19FDE16 is normally written as 19FDE.


Binary to Octal
Steps
Step 1 - Divide the binary digits into groups of three (starting
from the right).
Step 2 - Convert each group of three binary digits to one octal
digit.
Example
Binary Number : 101012
Calculating Octal Equivalent:
Nirmala Memorial Foundation college of Commerce and Science

Page 5

Step

Binary Number

Octal Number

Step 1

101012

010 101

Step 2

101012

28 58

Step 3

101012

258

Binary Number : 101012 = Octal Number : 258

Octal to Binary
Steps
Step 1 - Convert each octal digit to a 3 digit binary number
(the octal digits may be treated as decimal for this conversion).
Step 2 - Combine all the resulting binary groups (of 3 digits
each) into a single binary number.
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

Octal Number : 258 = Binary Number : 101012


From decimal to hexadecimal.
Nirmala Memorial Foundation college of Commerce and Science

Page 6

Convert your decimal number to binary


Split up in nibbles of 4, starting at the end
Look at the first table on this page and write the right
number in place of the nibble
(you can add zeroes at the beginning if the number of bits is not
divisible by 4, because, just as in decimal, these dont matter)
An example :
Convert 39 to hexadecimal:
First, we convert to binary (see above). Result: 100111
Next, we split it up into nibbles: 0010/0111 (Note: I added
two zeroes to clarify the fact that these are nibbles)
After that, we convert the nibbles separately.
Final result: 27
From hexadecimal to decimal
An example:
Convert 1AB to decimal:
Value of B = 16011. This gives 11, obviously
Value of A = 16110. This gives 160. Our current result is
171.
Value of 1 = 1621. This gives 256.
Final result: 427
From decimal to octal
Convert to binary.
Split up in parts of 3 digits, starting on the right.
Convert each part to an octal value from 1 to 7
Nirmala Memorial Foundation college of Commerce and Science

Page 7

Example: Convert 25 to octal


First, we convert to binary. Result: 11001
Next, we split up: 011/001
Conversion to octal: 31
From octal to decimal
Again, apply the formula from above
Example: convert 42 to decimal
Value of 2=802=2
Value of 4=814=32

Result: 34

Nirmala Memorial Foundation college of Commerce and Science

Page 8

You might also like