Home » Engineering » computer engineering » What is a Number system? Types of Number system used in computer system

What is a Number system? Types of Number system used in computer system

Introduction

Number systems are the essential building blocks for expressing quantities and carrying out mathematical operations in the broad field of mathematics and computer science. A number system is an organized representation of numbers that offers a way to work with and communicate numerical data. We will examine the fundamentals of number systems, their varieties, and their applications in computer science and mathematics in this blog.
Alt text: Diagram titled "Types of Number System" with four branches: Decimal (Base 10, 0-9), Binary (Base 2, 0-1), Octal (Base 8, 0-7), Hexadecimal (Base 16, 0-9, A-F) on a yellow background.

Understand the number system

Since the early days of human civilization, people have been using their fingers, sticks, and other things for counting. It all started perhaps, with the need to figure out the assets a person had. As daily activities became more complex, numbers became more important in trade, time, distance, and in all other spheres of human life. It became apparent that we needed more than our fingers and toes to keep track of the number in our daily routine.

Since people realized the need to count objects, they have sought easier counting methods. To handle large numbers, humans began counting in groups, which led to the creation of various number systems.

A number system defines a set of values used to represent ‘quantity.’ For example, we talk about the number of people attending a class, the number of modules each student takes, or use numbers to represent grades achieved in tests. Quantifying values and items relative to each other helps us make sense of our environment. Number systems fall into two broad categories:

1.Non-Positional Number Systems

In ancient times, people counted using their fingers. When fingers weren’t enough, they used stones and pebbles to represent values. This method of counting forms the non-positional number system. Performing arithmetic with this system proved difficult because it lacked a symbol for zero. The most common non-positional system is the Roman numeral system. Such systems often feel clumsy and make calculations with large numbers very challenging.

2.Positional Number Systems

A positional number system uses a finite set of symbols or digits to represent arbitrarily large numbers. These systems simplify numerical calculations by relying on a limited set of digits. Each digit’s value depends not only on the symbol itself but also on its position within the number. The most widely used positional system is the decimal number system. With the rise of computers, other positional systems like binary, octal, and hexadecimal also came into common use.

Base (or Radix) of System

The word base (or radix) refers to the number of allowable symbols used in a particular number system. These symbols can be Arabic numerals, Latin letters, or other recognizable marks representing the numerical value of a quantity. The decimal number system, which originated in India, uses 10 as its base. We indicate this by writing the number followed by a subscript showing the base. For example, (7592)10(7592)_{10} represents a number in base 10 (decimal), and (214)8(214)_8 represents a number in base 8 (octal).

For a computer, everything is in the digital form (binary form) whether it is number, alphabet, punctuation mark, instruction, etc. Let us illustrate with the help of an example. Consider the word ‘INDIA’ that appears on the computer screen as a series of alphabetic characters.However,for the computer,it is a combination of numbers.To the computer it appears as:

0100100101001110010001000100100101000001
INDIA

Types of Number Systems

Eventually, the number systems that are generally used by the computers are listed in below Table.
Number SystemRadix ValueSet of DigitsExample
DecimalR = 10(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)`left(25right)_10`
BinaryR = 2(0, 1)`left(11001right)_2`
OctalR = 8(0, 1, 2, 3, 4, 5, 6, 7)`left(31right)_8`
HexadecimalR = 16(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F)`left(19right)_16`
The important thing about the number systems is that each system is just a different method for representing the quantities. Moreover, the quantities do not change but the symbols used to represent those quantities are changed in each number system.

Decimal Number System

The primary number system used is the base ten or decimal number system. We use the decimal system every day when counting. Its name comes from the Latin word decem, which means ten. This number system uses ten digits: 0 through 9. Each digit in a base ten number represents a value ten times greater than the digit to its right.

Starting at the decimal point and moving left, each position represents the base (radix) value—10 for the decimal system—raised to a power. The power starts at 0 for the position immediately to the left of the decimal point and increases by 1 for each position further to the left.

Example = `10^3`,`10^2`,`10^1`,`10^0`         Where,

  1. `10^3` = 10×10×10 = 1000
  2. `10^2` = 10×10 = 100
  3. `10^1` = 10 =10
  4. `10^0` = 1

Moving to the right of the decimal point is just like moving to the left except that we will need to place a minus sign in front of each power.

Consider the number 9735. The first column of the following table shows 9735 in expanded notation. The second column displays the same sum but expresses 9000 as 9 × 1000, 700 as 7 × 100, 30 as 3 × 10, and 5 as 5 × 1. In the third column, we write the same numbers again, but this time express 1000, 100, 10, and 1 as powers of 10.
97359000Is equivalent to9 x 1000Is equivalent to`9times10^3`
+7007 x 100`7times10^2`
+303 x 10`3times10^1`
+55 x 1`5times10^0`

∴9735 = (9 × `10^3` ) + (7 × `10^2` ) + (3 × `10^1` ) + (5 × `10^0` ).

Binary Number System

  • The digital computer provides accurate solutions to the problems by performing arithmetic computations. These numbers are not expressed as decimal numbers within the computer because it is not suitable for machine processes. Computers are not only powered by electricity, they compute with electricity.
  • They shift voltage pulses around internally. When numbers are represented in a computer’s memory by means of small electrical circuits, a number system with only two symbols is used. These symbols are ON or OFF states of the circuit. This system of representing numbers is known as the binary number system.
  • Circuits allow electricity to flow or to be blocked depending on the type of circuit. Computer circuit is made out of transistors, which have only two states, ON and OFF. ON is interpreted as 1, while OFF as 0. Similar to the decimal system, the position of a digit in a number indicates its value.
  • Instead of ones, tens, hundreds, thousands, etc., as in the decimal system, the columns in the binary system contains ones, twos, fours, eights, etc. Each additional column to the left has powers of 2,specifically, each place in the number represents two times (2×’s) the place to its right. Below Table represents the first 10 binary numbers.
Decimal NumbersBinary Numbers
00
11
210
311
4100
5101
6110
7111
81000
91001

Octal Number System

  • The octal number system is a base 8 system, having eight admissible marks:0, 1, 2, 3, 4, 5, 6, and 7 with no 8’s or 9’s in the system. This system is a positional number system. The octal system uses powers of 8 to determine the digit of a number’s position.
Decimal NumberBinary NumberOctal Number
000000
100011
200102
300113
401004
501015
601106
701117
8100010
910011

Hexadecimal Number System

  • Hexadecimal system is similar to the decimal, binary, and octal number systems, except that the base is 16. Each hexadecimal number represents a power of 16. To represent the decimal numbers, this system uses 0 to 9 numbers and A to F characters to represent 10 to 15, respectively. The largest hexadecimal digit F is equivalent to binary 1111.
DecimalBinaryOctalHexadecimal
000000000
100010011
200100022
300110033
401000044
501010055
601100066
701110077
810000108
910010119
101010012A
111011013B
121100014C
131101015D
141110016E
151111017F

Conclusion

Number systems are the basis of digital computing, allowing computers to express, save, and process numerical information. It is essential for computer scientists, programmers, and individuals involved in digital systems to have knowledge of various number systems like binary, decimal, octal, and hexadecimal. Every number system has special features and uses that are important in the fields of technology and computation.

Share

Leave a Reply