Decimal Number Conversion
Decimal Number System Conversion – Complete Guide
Introduction to the Decimal Number System
The decimal number system is the most commonly used number system in our daily life.
It is a base-10 system that uses ten digits:
Each digit’s value depends on its position (place value) and the base (10). For example:
345 = (3 × 10²) + (4 × 10¹) + (5 × 10⁰)
Types of Decimal Number Conversions
We often convert decimal numbers into other number systems in digital electronics, computer science, and mathematics.
The main conversions are:
-
Decimal to Binary (Base-2)
-
Decimal to Octal (Base-8)
-
Decimal to Hexadecimal (Base-16)
-
Reverse Conversions (Binary/Octal/Hexadecimal to Decimal)
1. Decimal to Binary Conversion
The binary number system uses only two digits: 0 and 1.
Steps for Integer Part:
-
Divide the decimal number by 2.
-
Write down the remainder (0 or 1).
-
Repeat division with the quotient until it becomes 0.
-
Read the remainders from bottom to top.
Steps for Fractional Part:
-
Multiply the fraction by 2.
-
Take the integer part as the binary digit.
-
Repeat multiplication with the fractional part until it becomes 0 (or desired precision).
-
Read digits from top to bottom.
Example: Convert 13.25 to binary
-
Integer: 13 ÷ 2 = 6 R1 → 6 ÷ 2 = 3 R0 → 3 ÷ 2 = 1 R1 → 1 ÷ 2 = 0 R1 → Binary: 1101
-
Fraction: 0.25 × 2 = 0.5 (0), 0.5 × 2 = 1.0 (1) → Binary: 01
Result: 1101.01
2. Decimal to Octal Conversion
The octal system uses digits 0–7.
Steps for Integer Part:
-
Divide the decimal number by 8.
-
Write down the remainder (0–7).
-
Repeat until quotient is 0.
-
Read from bottom to top.
Steps for Fractional Part:
-
Multiply fraction by 8.
-
Take integer part as octal digit.
-
Repeat with fractional part.
Example: Convert 125 to octal
125 ÷ 8 = 15 R5
15 ÷ 8 = 1 R7
1 ÷ 8 = 0 R1
Result: 175
3. Decimal to Hexadecimal Conversion
Hexadecimal uses 16 symbols: 0–9 and A–F (A=10, B=11, …, F=15).
Steps for Integer Part:
-
Divide decimal number by 16.
-
Write remainder (0–15, convert 10–15 to A–F).
-
Repeat until quotient is 0.
Steps for Fractional Part:
-
Multiply fraction by 16.
-
Take integer part as hexadecimal digit.
-
Repeat with fractional part.
Example: Convert 255 to hexadecimal
255 ÷ 16 = 15 R15 (F)
15 ÷ 16 = 0 R15 (F)
Result: FF
Quick Conversion Table
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 5 | 101 | 5 | 5 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 31 | 11111 | 37 | 1F |
Applications of Decimal Number Conversion
-
Digital Electronics – for designing circuits that use binary or hexadecimal representations.
-
Programming – converting between number formats for computations.
-
Networking – IP addressing often requires binary-decimal conversion.
-
Mathematics Education – fundamental concept for number theory and base systems.

Comments
Post a Comment