Number Systems Theory and Basics

Complete guide to understanding different number systems, their properties, and applications in computing

What are Number Systems?

A number system is a systematic way to represent numbers using symbols or digits. The value of each digit in a number depends on:

  • The digit itself
  • Its position in the number
  • The base of the number system

Key Concept: Base (Radix)

The base of a number system determines how many different digits are available and the value of each position. For example:

  • Base 10 (Decimal): 10 digits (0-9)
  • Base 2 (Binary): 2 digits (0-1)
  • Base 16 (Hexadecimal): 16 digits (0-9, A-F)

Positional Notation

In positional notation, the value of a digit is determined by its position in the number. Each position represents a power of the base.

General Formula

dₙdₙ₋₁...d₂d₁d₀ = dₙ×bⁿ + dₙ₋₁×bⁿ⁻¹ + ... + d₂×b² + d₁×b¹ + d₀×b⁰

Where:

  • dᵢ = digit at position i
  • b = base of the number system
  • i = position (0 for rightmost digit)
Decimal Example: 325₁₀

3×10² + 2×10¹ + 5×10⁰ = 300 + 20 + 5 = 325

Binary Example: 1011₂

1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8 + 0 + 2 + 1 = 11

Decimal System (Base 10)

Properties

  • Base: 10
  • Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Position Values: ..., 1000, 100, 10, 1

Usage

  • Everyday counting and mathematics
  • Financial calculations
  • Scientific measurements

Binary System (Base 2)

Properties

  • Base: 2
  • Digits: 0, 1
  • Position Values: ..., 16, 8, 4, 2, 1

Usage

  • Digital electronics and computers
  • Boolean algebra
  • Data storage and processing

Key Binary Concepts

Bit

A single binary digit (0 or 1)

Byte

8 bits (can represent 256 values)

Word

Group of bits processed together (16, 32, or 64 bits)

Hexadecimal System (Base 16)

Properties

  • Base: 16
  • Digits: 0-9, A-F
  • Position Values: ..., 4096, 256, 16, 1

Usage

  • Computer programming
  • Memory addresses
  • Color codes in web design
  • Debugging and low-level programming

Hexadecimal Digits

Hex Decimal Binary Hex Decimal Binary
000000881000
110001991001
220010A101010
330011B111011
440100C121100
550101D131101
660110E141110
770111F151111

Octal System (Base 8)

Properties

  • Base: 8
  • Digits: 0, 1, 2, 3, 4, 5, 6, 7
  • Position Values: ..., 512, 64, 8, 1

Usage

  • Unix file permissions
  • Historical computing systems
  • Digital displays

Conversion Methods

Any Base to Decimal

Use positional notation:

dₙ×bⁿ + dₙ₋₁×bⁿ⁻¹ + ... + d₁×b¹ + d₀×b⁰

Decimal to Any Base

Use repeated division:

  1. Divide number by target base
  2. Record remainder
  3. Repeat with quotient until 0
  4. Read remainders in reverse

Binary ⇄ Hexadecimal

Group binary digits in sets of 4:

1101 0111₂ = D7₁₆

Binary ⇄ Octal

Group binary digits in sets of 3:

101 110 011₂ = 563₈

Real-World Applications

💻

Computer Architecture

Binary is fundamental to CPU operations, memory addressing, and digital logic circuits.

🎨

Web Design

Hexadecimal colors: #RRGGBB where each pair represents red, green, and blue intensity.

🔐

File Permissions

Unix uses octal notation for file permissions: 755 = rwxr-xr-x

🌐

Networking

IP addresses, subnet masks, and MAC addresses often use hexadecimal representation.

📊

Data Representation

All data in computers is ultimately stored and processed in binary format.

🐞

Debugging

Hexadecimal is used in memory dumps and low-level debugging for compact representation.

🛠️ Free Smart Tools

English English