Number Systems and Conversions

📘 Computer Fundamentals 👁 44 views 📅 Nov 05, 2025
⏱ Estimated reading time: 2 min

Number Systems and Conversions

A number system is a way to represent numbers using digits or symbols. Computers primarily use binary systems, but humans commonly use decimal numbers.


1. Common Number Systems

Number SystemBaseDigits UsedExample
Decimal (Base-10)100–9237, 405
Binary (Base-2)20, 11011, 1100
Octal (Base-8)80–757, 145
Hexadecimal (Base-16)160–9, A–F1A, 3F

2. Conversions Between Number Systems

a) Decimal to Binary

  • Divide the decimal number by 2 repeatedly.

  • Record remainders in reverse order.

Example: 13 (decimal) → 1101 (binary)

b) Binary to Decimal

  • Multiply each binary digit by 2^position (position counted from right, starting at 0).

  • Sum the results.

Example: 1101 (binary) → 1*2^3 + 1*2^2 + 0*2^1 + 1*2^0 = 13 (decimal)

c) Decimal to Octal

  • Divide decimal by 8 repeatedly.

  • Write remainders in reverse order.

d) Octal to Decimal

  • Multiply each digit by 8^position (position from right starting at 0) and sum.

e) Decimal to Hexadecimal

  • Divide decimal by 16 repeatedly.

  • Map remainders 0–9 stay same, 10–15 → A–F.

f) Hexadecimal to Decimal

  • Multiply each hex digit by 16^position (position from right starting at 0) and sum.

g) Binary ↔ Octal Conversion

  • Group binary digits in sets of 3 (from right to left) for octal conversion.

h) Binary ↔ Hexadecimal Conversion

  • Group binary digits in sets of 4 (from right to left) for hexadecimal conversion.


Key Points

  • Decimal system (base 10) is human-friendly; binary (base 2) is computer-friendly.

  • Octal (base 8) and hexadecimal (base 16) are shorthand for binary numbers.

  • Conversion involves division-remainder method (decimal → other) or positional method (other → decimal).

  • Understanding number systems is essential for computer programming, digital electronics, and networking.


🔒 Some advanced sections are available for Registered Members
Register Now

Share this Post


← Back to Tutorials

Popular Competitive Exam Quizzes