What is a Number System?
A number system is a method used to represent numbers using specific symbols and rules.
Every number system contains:
- A set of digits
- A base (radix)
The base defines:
- The total number of unique digits used
- The positional value of each digit

Common Number Systems
| Number System | Base | Digits Used |
|---|
| Decimal | 10 | 0–9 |
| Binary | 2 | 0–1 |
| Octal | 8 | 0–7 |
| Hexadecimal | 16 | 0–9, A–F |
Understanding these number systems is important for students learning:
- Digital electronics
- Embedded systems
- Microcontrollers
- Computer architecture
- Programming
Decimal Number System
The decimal number system is the standard system used in everyday life.
Base
10
Digits Used
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Example
452 can be expanded as:
452 = 4 × 102 + 5 × 101 + 2 × 100
Decimal numbers are easy for humans to understand, but digital circuits work more efficiently with binary values.
Binary Number System
The binary number system is the most important number system in digital electronics.
Base
2
Digits Used
0 and 1
These binary digits are called bits.
Why Binary is Used in Digital Electronics
Electronic circuits can easily represent two stable states:
| Binary | Electronic State |
|---|
| 0 | LOW / OFF |
| 1 | HIGH / ON |
This makes binary ideal for:
Binary Positional Values
In the binary number system, each position represents powers of 2.
Example
10112 = 1 × 23 + 0 × 22 + 1 × 21 + 1 × 20
Result:
11₁₀
Binary to Decimal Conversion
Example
Convert 1101₂ into decimal.
11012 = 1 × 23 + 1 × 22 + 0 × 21 + 1 × 20
Result:
13₁₀
Binary to decimal conversion is widely used in digital electronics and computer number systems.

Decimal to Binary Conversion
The most common method is repeated division by 2.
Example: Convert 13 into Binary
| Division | Quotient | Remainder |
|---|
| 13 ÷ 2 | 6 | 1 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Reading remainders from bottom to top:
1101₂
This method is important in embedded systems and digital logic design.
Binary Arithmetic
Binary arithmetic is used in computers and microcontrollers for performing calculations.
Binary Addition Rules
Example
1010
+ 0011
------
1101
Binary arithmetic forms the foundation of digital processing systems.
1’s Complement and 2’s Complement
Complements are widely used for signed arithmetic and subtraction in computers.
1’s Complement
Invert all bits.
Example:
1010 → 0101
2’s Complement
Add 1 to the 1’s complement.
Example:
1010
↓
0101 + 1
↓
0110
2’s complement is heavily used in:
Octal Number System
The octal number system uses base 8.
Digits Used
0 to 7
Importance of Octal Number System
Octal provides a compact representation of binary numbers.
Since:
23 = 8
Every 3 binary bits correspond to one octal digit.
Binary to Octal Conversion
Example
Convert 101111₂ into octal.
Group into 3 bits:
101 111
Equivalent octal digits:
101 = 5
111 = 7
Result:
57₈
Octal to Binary Conversion
Convert each octal digit into 3-bit binary.
Example
25₈
2 = 010
5 = 101
Result:
010101₂
Octal conversion techniques are useful in digital electronics and older computer systems.
Hexadecimal Number System
The hexadecimal number system is widely used in embedded systems, microcontrollers, and computer programming.
Base
16
Digits Used
0–9 and A–F
| Hex | Decimal |
|---|
| A | 10 |
| B | 11 |
| C | 12 |
| D | 13 |
| E | 14 |
| F | 15 |
Why Hexadecimal is Important
Binary numbers become very long and difficult to read.
Example:
1111111111111111
In hexadecimal:
FFFF
Hexadecimal makes:
Binary to Hexadecimal Conversion
Since:
24 = 16
Every 4 binary bits correspond to one hexadecimal digit.
Example
Convert 10101111₂ into hexadecimal.
1010 1111
Equivalent values:
1010 = A
1111 = F
Result:
AF₁₆
Hexadecimal to Binary Conversion
Example
Convert 3C₁₆ into binary.
3 = 0011
C = 1100
Result:
00111100₂
Decimal to Hexadecimal Conversion
Example
Convert 255 into hexadecimal.
| Division | Quotient | Remainder |
|---|
| 255 ÷ 16 | 15 | 15 (F) |
| 15 ÷ 16 | 0 | 15 (F) |
Result:
FF₁₆
Decimal to hexadecimal conversion is commonly used in microcontroller programming and embedded systems.
Comparison of Number Systems
| Number System | Base | Digits |
|---|
| Decimal | 10 | 0–9 |
| Binary | 2 | 0–1 |
| Octal | 8 | 0–7 |
| Hexadecimal | 16 | 0–9, A–F |
Applications of Number Systems in Digital Electronics
Binary Number System Applications
Used in:
Octal Number System Applications
Used in:
- Compact binary representation
- Older computer systems
Hexadecimal Number System Applications
Used in:
- Memory addresses
- Embedded C programming
- Registers
- Machine code
- Debugging systems
Example:
PORT = 0xFF;
Number Systems in Embedded Systems and Microcontrollers
In embedded systems like:
- 8051 Microcontroller
- LPC1768
- ARM Cortex
hexadecimal notation is widely used.
Example
TMOD = 0x01;
Here:
- 0x indicates hexadecimal
- 01 is a hexadecimal value
Understanding hexadecimal notation is essential for embedded programming and microcontroller development.
Advantages of Different Number Systems
| Number System | Advantages |
|---|
| Binary | Direct hardware compatibility |
| Octal | Compact binary representation |
| Hexadecimal | Easy programming and debugging |
Conclusion
Number systems are one of the most important concepts in digital electronics and embedded systems. The binary number system serves as the core language of computers and digital circuits, while octal and hexadecimal simplify programming and data representation.
A strong understanding of:
- Binary arithmetic
- Number system conversion
- Hexadecimal notation
- Complements
- Binary logic
is essential for:
- Embedded programming
- Digital electronics
- Computer architecture
- Microcontroller development
- IoT systems
Mastering number systems helps engineers understand how digital systems store, process, and transmit data efficiently.
Whether you are learning digital electronics for academics, embedded systems projects, or programming, understanding binary, octal, and hexadecimal systems is the first step toward becoming a skilled electronics and embedded engineer.
