ITKokka
Lesson 3 ยท Note 5

Decimal Number Conversions (Decimal - Other Number Systems)

๐Ÿ“Œ The Short Note

Download

๐Ÿ“– Explanation

Decimal Number Conversions

A decimal number can be represented in other number systems without changing its value. In ICT, decimal numbers are commonly converted to binary, octal, and hexadecimal because computers use binary internally, while octal and hexadecimal provide shorter ways to write binary values.

This note explains how to convert a decimal number to each of these number systems using the repeated division method.

Number systems and their bases

A number system is a method of representing numbers using a set of digits and rules. The base, also called the radix, tells us how many different digits are available in that system.

Number systemBase (radix)Digits / symbols used
Binary20, 1
Octal80โ€“7
Decimal100โ€“9
Hexadecimal160โ€“9 and Aโ€“F

In hexadecimal, the letters represent values greater than 9:

Decimal valueHexadecimal digit
10A
11B
12C
13D
14E
15F

Key Idea: When converting a decimal number to another base, divide by the target base. The remainders form the digits of the answer.

The repeated division method

The repeated division method is used to convert a whole decimal number to binary, octal, or hexadecimal.

Follow these steps:

  1. Divide the decimal number by the target base (2, 8, or 16).
  2. Record the remainder.
  3. Divide the quotient from the previous step by the same base.
  4. Continue until the quotient becomes 0.
  5. Read the remainders from bottom to top. This gives the converted number.

The first remainder is the rightmost digit of the answer, so the remainders must be read in reverse order.

Decimal to binary conversion

To convert a decimal number to binary, repeatedly divide it by 2. Each remainder will be either 0 or 1, which are the only digits used in binary.

Example: Convert 25โ‚โ‚€ to binary
DivisionQuotientRemainder
25 รท 2121
12 รท 260
6 รท 230
3 รท 211
1 รท 201

Read the remainders from bottom to top: 11001.

Therefore:

25โ‚โ‚€ = 11001โ‚‚

The subscript indicates the base: โ‚โ‚€ means decimal and โ‚‚ means binary.

Decimal to octal conversion

To convert a decimal number to octal, repeatedly divide it by 8. The remainders are between 0 and 7, matching the digits available in octal.

Example: Convert 83โ‚โ‚€ to octal
DivisionQuotientRemainder
83 รท 8103
10 รท 812
1 รท 801

Read the remainders from bottom to top: 123.

Therefore:

83โ‚โ‚€ = 123โ‚ˆ

Each remainder is one octal digit. No remainder in this example is greater than 7.

Decimal to hexadecimal conversion

To convert a decimal number to hexadecimal, repeatedly divide it by 16. A remainder from 10 to 15 is written using the letters A to F.

Example: Convert 250โ‚โ‚€ to hexadecimal
DivisionQuotientRemainder
250 รท 161510 (A)
15 รท 16015 (F)

Read the remainders from bottom to top: FA.

Therefore:

250โ‚โ‚€ = FAโ‚โ‚†

The remainder 10 is written as A, and the remainder 15 is written as F. The final answer is FA, not AF, because remainders are read from bottom to top.

Quick examples

The same division process can be applied to other decimal values.

DecimalBinaryOctalHexadecimal
19โ‚โ‚€10011โ‚‚23โ‚ˆ13โ‚โ‚†
45โ‚โ‚€101101โ‚‚55โ‚ˆ2Dโ‚โ‚†
31โ‚โ‚€11111โ‚‚37โ‚ˆ1Fโ‚โ‚†
64โ‚โ‚€1000000โ‚‚100โ‚ˆ40โ‚โ‚†
72โ‚โ‚€1001000โ‚‚110โ‚ˆ48โ‚โ‚†
100โ‚โ‚€1100100โ‚‚144โ‚ˆ64โ‚โ‚†
256โ‚โ‚€100000000โ‚‚400โ‚ˆ100โ‚โ‚†
409โ‚โ‚€110011101โ‚‚635โ‚ˆ199โ‚โ‚†

Why does the method work?

A number written in a positional number system is made up of digits whose values depend on their positions. When a number is divided by a base, the remainder identifies the value of the rightmost digit in that base. The quotient contains the value represented by the remaining higher positions.

Repeating the division extracts the digits from right to left. Reading the remainders in reverse order puts the digits in their normal left-to-right order.

For example, when converting 25 to binary:

  • 25 รท 2 leaves remainder 1, the rightmost binary digit.
  • The next division leaves 0, the next digit to its left.
  • Continuing in this way produces the digits from least significant to most significant.

Common mistakes to avoid

  • Dividing by the wrong base: use 2 for binary, 8 for octal, and 16 for hexadecimal.
  • Reading remainders in the wrong direction: always read from bottom to top.
  • Stopping too early: continue until the quotient becomes 0.
  • Writing hexadecimal remainders incorrectly: use A, B, C, D, E, and F for values 10, 11, 12, 13, 14, and 15.
  • Confusing the quotient with the remainder: record the remainder at every division; the remainders form the converted answer.

Exam-focused points

Key Idea: The repeated division method converts a decimal whole number to another base by repeatedly dividing by the target base and recording each remainder.

Key Idea: The remainders must be read from bottom to top, because the first remainder is the least significant (rightmost) digit.

Key Idea: In hexadecimal, remainders 10โ€“15 are represented by Aโ€“F respectively.

Summary

To convert a whole decimal number to binary, octal, or hexadecimal, repeatedly divide it by the required base and record the remainders. Continue until the quotient is zero, then read the remainders from bottom to top. Use base 2 for binary, base 8 for octal, and base 16 for hexadecimal. The number's value stays the same; only its representation changes.

Share:
โ† Relationship between Number systemsNumber System conversions (Other Number Systems - Decimal ) โ†’