Review of number systems and number base conversions

Comprehensive study notes, diagrams, and exam preparation for Review of number systems and number base conversions.

Review of Number Systems and Number Base Conversions

Definition

A number system is a method of representing numbers using a set of digits and a base (also called radix). The base determines how many unique digits are used and the positional value of each digit.

A base conversion is the process of changing a number from one number system to another without changing its actual value.

For example:

  • Decimal uses base 10 and digits 0–9
  • Binary uses base 2 and digits 0–1
  • Octal uses base 8 and digits 0–7
  • Hexadecimal uses base 16 and digits 0–9 and A–F

The general positional value of a number can be written as:

where:

  • = digit
  • = base of the number system
  • = position index

Main Content

1. Number Systems and Their Place Values

Decimal number system

The decimal system is the most familiar number system in daily life. It has base 10 and uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Its positional values are powers of 10. For example, means: This system is used because humans naturally count using ten fingers, making it intuitive for arithmetic and measurement.

Binary, octal, and hexadecimal systems

Binary is base 2 and uses only 0 and 1. It is the language of digital computers because electronic circuits can easily represent two states such as ON/OFF, HIGH/LOW, or TRUE/FALSE. Octal is base 8 and hexadecimal is base 16. These are compact ways of writing binary numbers. For example, the binary number is written as in octal and in hexadecimal.
A place-value illustration for decimal and binary:

Decimal:

Binary:

Importance of positional notation

In all number systems, the value of a digit depends on its position. The same digit may represent very different values depending on where it appears. This is why reading a number requires knowledge of its base. For instance, in decimal means one hundred and one, but equals five in decimal. Understanding positional notation is the first step in mastering number-base conversion.

2. Binary, Octal, and Hexadecimal Relationships

Binary as the core representation

Binary is the fundamental internal representation in digital systems. Every piece of data in a computer—numbers, text, images, and instructions—is ultimately stored as bits (binary digits). A bit can be 0 or 1, and groups of bits are used to represent larger values. For example, 8 bits form a byte, which can represent values from 0 to 255 in unsigned form.

Octal and hexadecimal as shorthand forms

Since binary numbers can become long and difficult to read, octal and hexadecimal are used as compact notations. Octal groups binary digits in sets of 3 because . Hexadecimal groups binary digits in sets of 4 because . This grouping makes conversion easy and helps reduce errors.
Example: Group into 3s from right for octal: Group into 4s from right for hexadecimal:

Hexadecimal digit mapping

Hexadecimal uses the symbols A to F for values 10 to 15:

  • A = 10
  • B = 11
  • C = 12
  • D = 13
  • E = 14
  • F = 15

This is especially useful in computer memory addressing, machine code representation, color coding in web design, and low-level programming. For example, the decimal value 255 is represented as FF in hexadecimal and 11111111 in binary.

3. Number Base Conversion Methods

Conversion from any base to decimal

To convert a number from any base to decimal, expand it using positional weights and add the results. This method works for binary, octal, hexadecimal, or any base.
Example: Convert to decimal: Example: Convert to decimal:

Conversion from decimal to another base

The most common method is repeated division for integers and repeated multiplication for fractional parts.
For an integer, divide by the base repeatedly and record the remainders. The remainders read upward give the converted number.
Example: Convert to binary:

  • 25 ÷ 2 = 12 remainder 1
  • 12 ÷ 2 = 6 remainder 0
  • 6 ÷ 2 = 3 remainder 0
  • 3 ÷ 2 = 1 remainder 1
  • 1 ÷ 2 = 0 remainder 1

Reading the remainders from bottom to top:

Direct conversion between binary, octal, and hexadecimal

Since octal and hexadecimal are powers of 2, conversions among them and binary are done by grouping bits.
Binary to octal: group in 3s
Binary to hexadecimal: group in 4s
Octal to binary: replace each octal digit with 3-bit binary
Hexadecimal to binary: replace each hex digit with 4-bit binary

Example: Convert each digit:

  • 7 = 0111
  • C = 1100

So,


Working / Process

1. Identify the base of the given number and the target base

Before starting, determine whether the number is decimal, binary, octal, or hexadecimal. Also identify whether the conversion is to decimal or between non-decimal bases. This step is crucial because the method depends on the base involved.

2. Apply the correct conversion technique

  • For base-to-decimal, use positional expansion.
  • For decimal-to-base, use repeated division for whole numbers and repeated multiplication for fractional parts.
  • For binary-octal or binary-hexadecimal, group bits in 3s or 4s.
  • For octal/hexadecimal to binary, convert each digit separately into fixed-bit binary.

3. Verify the result and interpret the value correctly

After conversion, check whether the answer is consistent. You can verify by converting back to the original base or by comparing decimal equivalents. Ensure the correct use of digit symbols, especially in hexadecimal where letters A–F represent values beyond 9.


Advantages / Applications

Easy communication between humans and computers

Humans commonly use decimal, but computers use binary. Base conversions allow us to understand machine-level data and express it in a readable form.

Efficient representation of large binary numbers

Binary numbers are long and difficult to read. Octal and hexadecimal provide a shorter and cleaner way to represent the same data, reducing mistakes in programming and digital design.

Useful in computer architecture and digital electronics

Number systems are used in memory addresses, instruction codes, bitwise operations, color models, register values, and debugging. Hexadecimal is especially common in programming and hardware documentation.


Summary

  • Number systems represent values using digits and a base, and their meaning depends on positional place value.
  • Binary is the fundamental language of computers, while octal and hexadecimal are convenient compact forms of binary.
  • Base conversion can be done using positional expansion, repeated division, repeated multiplication, or bit grouping.
  • Number base conversion is essential for understanding digital systems, programming, and computer hardware.
  • Common terms to remember include base, radix, digit, positional notation, binary, octal, hexadecimal, bit, nibble, and byte.