GATE Exam  >  GATE Notes  >  Number System

Number System

Introduction

  • Digital systems use positional number systems to represent and process information.
  • In a positional system, the value of a digit depends on the digit itself, the position (index) it occupies, and the base (radix) of the system.
  • Representing information numerically enables storage, computation and transmission in electronic devices.
Number System

The contribution of a digit to the total value of a number in a positional system is determined by three factors:

  • Digit value - the symbol used at that position (for example 0-9 or A-F).
  • Position (index) - the place of the digit relative to the radix point (or decimal point); positions left of the point are non‐negative indices and those right are negative indices.
  • Base (radix) - the number of distinct digit symbols available in the system; denoted by b.

Note: If the digit symbols are 0 through 9, the base is 10.

Types of Number Systems

Several number systems are commonly used in digital electronics and computation. The most important positional systems are described below.

Types of Number Systems

Binary Number System

The binary system uses base 2 and two digit symbols: 0 and 1. Each binary digit is called a bit. Groups of bits have common names: a group of four bits is a nibble, and a group of eight bits is a byte.

In binary notation the position of a digit represents a power of 2.

  • Only two symbols: 0 and 1.
  • Also called the base 2 number system.
  • Value of a digit at position i (counting from 0 at the least significant bit) is the digit multiplied by 2^i.

Examples: (10100)2, (11011)2, (11001)2, (000101)2, (011010)2.

Decimal Number System

The decimal system uses base 10 and digit symbols 0 through 9. It is the standard system for everyday counting and arithmetic.

  • Digits available: 0, 1, 2, ..., 9.
  • Also called the base 10 number system.
  • Positions to the left of the radix point represent units, tens, hundreds, thousands, etc.; each position corresponds to successive powers of 10.

(2541) can be expanded as

(2 × 1000) + (5 × 100) + (4 × 10) + (1 × 1)

(2 × 103) + (5 × 102) + (4 × 101) + (1 × 100)

2000 + 500 + 40 + 1 = 2541

Octal Number System

The octal system uses base 8 with digit symbols 0 through 7. Each octal digit corresponds to exactly three binary bits, which makes conversion between binary and octal convenient.

  • Digits available: 0, 1, 2, 3, 4, 5, 6, 7.
  • Also called the base 8 number system.
  • Value of a digit at position i is the digit multiplied by 8^i.
Octal Number System

Examples: (273)8, (5644)8, (0.5365)8, (1123)8, (1223)8.

Hexadecimal Number System

The hexadecimal system uses base 16 and sixteen symbols: 0-9 and A-F, where A-F represent decimal values 10-15. Each hexadecimal digit corresponds to exactly four binary bits, which makes conversion between binary and hexadecimal straightforward.

  • Digits available: 0, 1, 2, ..., 9, A, B, C, D, E, F.
  • Letters A to F denote decimal values 10 to 15, respectively.
  • Also called the base 16 number system.
  • Value of a digit at position i is the digit multiplied by 16^i.
Hexadecimal Number System

Examples: (FAC2)16, (564)16, (ABD5)16, (1123)16, (11F3)16.

Positional Notation - General Representation

A number in base b with digits anan-1...a1a0.a-1a-2... is interpreted as the sum of each digit times the corresponding power of b.

  • General formula:

anbn + an-1bn-1 + ... + a1b1 + a0b0 + a-1b-1 + a-2b-2 + ...

Each coefficient ai satisfies 0 ≤ ai ≤ b - 1.

Conversion Methods

Converting from base b to decimal

Compute the positional sum: multiply each digit by the appropriate power of b and add the results.

Example: Convert (10100)2 to decimal.

Sol.

10100 in base 2 equals

1 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 0 × 20

16 + 0 + 4 + 0 + 0

= 20

Converting from decimal to base b (division‐remainder method)

Divide the decimal number repeatedly by the target base and collect remainders; the remainders read from last to first give the digits in the new base.

Example: Convert (2541)10 to base 8.

Sol.

2541 ÷ 8 = 317 remainder 5

317 ÷ 8 = 39 remainder 5

39 ÷ 8 = 4 remainder 7

4 ÷ 8 = 0 remainder 4

Read remainders from last to first: (4755)8

Binary ↔ Octal and Binary ↔ Hexadecimal (grouping methods)

Conversion between binary and octal is done by grouping binary digits in sets of three, starting from the radix point; each group maps to one octal digit.

Conversion between binary and hexadecimal is done by grouping binary digits in sets of four; each group maps to one hexadecimal digit.

Example: Convert (11001010)2 to hexadecimal.

Sol.

Group binary digits in sets of four from the right: 1100 1010

1100 in binary = 12 in decimal = C in hexadecimal

1010 in binary = 10 in decimal = A in hexadecimal

So the hexadecimal representation is (CA)16

Converting fractional parts

To convert a fractional decimal part to base b, multiply the fractional part repeatedly by b and record the integer part of each product; these integers form the fractional digits in order.

Example: Convert 0.62510 to binary.

Sol.

0.625 × 2 = 1.25 → integer part 1

0.25 × 2 = 0.5 → integer part 0

0.5 × 2 = 1.0 → integer part 1

Fractional digits: .101

Hence 0.62510 = (0.101)2

Basic Arithmetic and Representations

  • Binary arithmetic follows the same principles as decimal arithmetic but with base 2: 0+0=0, 0+1=1, 1+1=10 (carry 1), 1+1+1=11 (carry 1 and sum 1).
  • Signed numbers: Common representations include sign‐magnitude, one's complement, and two's complement. Two's complement is widely used for signed integer arithmetic because it simplifies addition and subtraction.
  • Overflow: Occurs when a computation requires more bits than available; rules differ for unsigned and signed interpretations.

Examples Summary

  • Binary example: (10100)2 = 2010.
  • Decimal-to-octal example: (2541)10 = (4755)8.
  • Binary-to-hex example: (11001010)2 = (CA)16.
  • Fractional conversion example: 0.62510 = (0.101)2.

Final summary

Positional number systems assign each digit a weight equal to a power of the base. Understanding binary, octal, decimal and hexadecimal systems, and the standard methods to convert among them, is essential for representing data and performing arithmetic in digital systems. Grouping methods facilitate binary↔octal/hex conversions, while division‐remainder and multiplication methods convert integral and fractional parts respectively between decimal and other bases.

The document Number System is a part of GATE category.
All you need of GATE at this link: GATE

FAQs on Number System

1. What is the number system in GATE?
Ans. The number system in GATE refers to the representation and manipulation of numbers in various formats, such as binary, decimal, octal, and hexadecimal. It involves understanding the properties and operations of these number systems and their conversions.
2. How important is the number system in the GATE exam?
Ans. The number system is a fundamental concept in computer science and engineering. It is highly important in the GATE exam as it forms the basis for understanding various topics like digital logic, computer organization, and computer arithmetic. A strong understanding of the number system is crucial for solving problems in these areas.
3. What are the different types of number systems tested in the GATE exam?
Ans. The GATE exam primarily tests knowledge of four number systems: binary, decimal, octal, and hexadecimal. These number systems have different bases and are used in different contexts. Understanding their conversions and properties is important for solving numerical problems in the exam.
4. How can I improve my understanding of the number system for the GATE exam?
Ans. To improve your understanding of the number system for the GATE exam, it is essential to practice solving problems related to number system conversions, arithmetic operations, and logical operations. Additionally, studying relevant textbooks and online resources, attending lectures or tutorials, and solving previous year GATE questions can significantly enhance your grasp of the number system.
5. Are there any shortcuts or tricks to solve number system problems in the GATE exam?
Ans. Yes, there are certain shortcuts and tricks that can be used to solve number system problems quickly and efficiently in the GATE exam. These include techniques like using pattern recognition, simplifying the problem by eliminating unnecessary steps, and using mental calculations for basic arithmetic operations. Regular practice and familiarity with these tricks can help improve speed and accuracy in solving number system problems.
Download as PDF

Top Courses for GATE

Related Searches
past year papers, Semester Notes, Objective type Questions, Number System, pdf , Number System, Previous Year Questions with Solutions, mock tests for examination, Exam, Sample Paper, practice quizzes, Important questions, Number System, Free, study material, video lectures, MCQs, ppt, shortcuts and tricks, Viva Questions, Extra Questions, Summary;