9.1 The Decimal System

COS2621 - Computer Organisation · 9. Number Systems

The Decimal System

Introduction to the Decimal System

The decimal system is a base-10 number system. It uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each digit's place value is a power of 10. For example, in the number 345, the digit 3 is in the hundreds place, the digit 4 is in the tens place, and the digit 5 is in the ones place.

Place Value

Place value is crucial in the decimal system. Each position in a number represents a different power of 10. The rightmost digit represents 10^0 (1), the next one to the left represents 10^1 (10), then 10^2 (100), and so on. Let’s break down the number 472:

  • 4 is in the hundreds place (4 × 100 = 400)
  • 7 is in the tens place (7 × 10 = 70)
  • 2 is in the ones place (2 × 1 = 2)

So, 472 = 400 + 70 + 2.

Example of Place Value Calculation

Consider the number 1,234:

  • 1 is in the thousands place (1 × 1,000 = 1,000)
  • 2 is in the hundreds place (2 × 100 = 200)
  • 3 is in the tens place (3 × 10 = 30)
  • 4 is in the ones place (4 × 1 = 4)

Thus, 1,234 = 1,000 + 200 + 30 + 4.

Converting Decimal Numbers

To convert a decimal number into a different base, you can use repeated division or subtraction. For example, converting the decimal number 13 to binary (base-2):

  1. 13 ÷ 2 = 6 remainder 1
  2. 6 ÷ 2 = 3 remainder 0
  3. 3 ÷ 2 = 1 remainder 1
  4. 1 ÷ 2 = 0 remainder 1

Reading the remainders from bottom to top, 13 in decimal is 1101 in binary.

Remember: Always read remainders from bottom to top when converting.

Applications of the Decimal System

The decimal system is widely used in everyday life, including in financial transactions, measurements, and digital systems. Understanding this system is essential for grasping more complex number systems used in computing.

Summary

  • The decimal system is base-10 and uses digits from 0 to 9.
  • Each digit's place value is a power of 10.
  • Converting decimal numbers can be done through repeated division.

Check your understanding

  • What is the place value of the digit 5 in the number 5,678?
  • How would you convert the decimal number 25 to binary?
  • Explain why the decimal system is important in computing.

Test yourself

4 quick questions on this lesson. Pick an answer to see if you're right.

  1. 1. Which of the following is NOT a digit used in the decimal system?

  2. 2. How would you convert the decimal number 25 to binary?

  3. 3. What is the place value of the digit 7 in the number 7,345?

  4. 4. In the number 1,234, what is the value represented by the digit 2?