The Wayback Machine - https://web.archive.org/web/20261129145420/https://www.geeksforgeeks.org/maths/number-system-in-maths/

Introduction to Number System

Last Updated : 23 Nov, 2026

A number system is a method of representing numbers using a set of symbols and rules. It provides a standard way to express quantities and perform mathematical operations.

In digital computers, data is represented internally using binary digits (0 and 1). Although humans commonly use the decimal system, computers use binary because digital electronic circuits can represent two distinct states.

  • Different number systems are used to represent numerical values in different forms.
  • Binary is the fundamental number system used in digital computers.
  • Octal and hexadecimal provide shorter, more readable representations of binary values by grouping binary digits.
binary-code
Figure 1: Everything is stored in the computer in the form of binary.

Number systems provide a structured way to represent numbers and perform arithmetic operations.

  • A number system uses a base (or radix) to represent values.
  • The base specifies the number of unique digits, including zero, used in that system.
  • Each digit has a place value determined by its position and the base of the number system.

Types of Number Systems

Number systems are classified based on their base values and the digits used to represent numbers.

number_system
Number System Types

Decimal Number System

The Decimal Number System is the standard number system commonly used in everyday calculations.

  • It is also called the base-10 system.
  • It uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
  • Each digit has a place value determined by the powers of 10, starting from 10^0 at the rightmost position.

Example:

The decimal number 10285 can be represented as:

10285 can be written as
10285 = (1 × 104) + (0 × 103) + (2 × 102) + (8 × 101) + (5 × 100)
10285 = 1 × 10000 + 0 × 1000 + 2 × 100 + 8 × 10+ 5 × 1
10285 = 10000 + 0 + 200 + 80 + 5
10285 = 10285

Binary Number System

The Binary Number System is a number system with base 2.

  • It uses two digits: 0 and 1, called bits.
  • It is widely used in digital computers because electronic circuits can represent two states, such as ON and OFF.
  • Each digit has a place value determined by the powers of 2, starting from 2^0 at the rightmost position.
  • Binary numbers can be converted into decimal by multiplying each digit by its corresponding place value and adding the results.

Example:

The binary number (1011)_2 can be represented as:

(1011)₂ can be written as
(1011)₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰
(1011)₂ = 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1
(1011)₂ = 11 (in decimal)

Octal Number System

The Octal Number System is a number system with base 8.

  • It uses eight digits: 0, 1, 2, 3, 4, 5, 6, and 7.
  • It is used in applications such as Unix/Linux file permissions.
  • Each digit has a place value determined by the powers of 8, starting from 8^0 at the rightmost position.
  • Each octal digit represents exactly three binary bits, making binary values more compact and readable.

Example:

The octal number \((325)_8\) can be represented as:

(325)8 can be written as
(325)8 = 3 × 8² + 2 × 8¹ + 5 × 8⁰
(325)8 = 192 + 16 + 5
(325)8 = 213 (in decimal)

Hexadecimal Number System

The Hexadecimal Number System is a number system with base 16.

  • It uses sixteen symbols: 0–9 and A–F.
  • The letters A, B, C, D, E, and F represent decimal values 10, 11, 12, 13, 14, and 15, respectively.
  • It is commonly used to represent memory addresses, machine code, and color codes.
  • Each digit has a place value determined by the powers of 16, starting from 16^0 at the rightmost position.
  • Each hexadecimal digit represents exactly four binary bits, making long binary values shorter and easier to read.

Example:

The hexadecimal number (2F)_{16} can be represented as:

(2F)16 can be written as
(2F)16 = 2 × 16¹ + F × 16⁰
(2F)16 = 2 × 16 + 15 × 1
(2F)16 = 32 + 15
(2F)16= 47 (in decimal)

Also Check:

Comment

Explore