Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 39 · Decimals and Percentages

Decimal Operations

Add, subtract, multiply and divide decimals correctly: line up the points, count decimal places, and shift the point for division, with checks and estimates.

Decimals follow the same methods as whole numbers, with extra care about where the decimal point goes. Once you know the four rules, which come directly from place value, working with prices, measurements and data becomes routine.

Adding and subtracting

Line up the decimal points, so that tenths sit under tenths and hundredths under hundredths. Pad with zeros to make columns even, then add or subtract as with whole numbers. Put the point in the answer directly under the others.

Text
   12.40
 +  3.275      (pad 12.4 as 12.400)
 -------
   15.675

For subtraction, 5 - 2.37: write 5 as 5.00.

Text
   5.00
 - 2.37
 ------
   2.63

Check by estimating: 5 - 2.4 ≈ 2.6.

Python Add and subtract with exact decimals

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last two lines show why we use Decimal here: computers store ordinary decimals in binary, so 0.1 + 0.2 prints 0.30000000000000004. Pen-and-paper decimal arithmetic is exact, and Decimal copies that.

Multiplying decimals

  1. Ignore the decimal points and multiply as whole numbers.
  2. Count the total number of decimal places in both factors.
  3. Put that many decimal places in the product.

0.6 × 0.04: 6 × 4 = 24. Decimal places: 1 + 2 = 3. So 0.024.

Why? 0.6 = 6/10 and 0.04 = 4/100, so the product is 24/1,000 = 0.024.

Another: 2.5 × 1.2: 25 × 12 = 300; two decimal places gives 3.00 = 3.

Estimate: 2.5 × 1.2 is a little more than 2.5; a result of 3 fits.

Python Count the decimal places

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Dividing decimals

Decimal divided by whole number: divide normally and keep the point directly above its position in the dividend. 7.5 ÷ 3 = 2.5.

Divisor is a decimal: make it a whole number by multiplying both the dividend and divisor by the same power of ten. This does not change the quotient (equivalent fractions again).

4.5 ÷ 0.09: multiply both by 100: 450 ÷ 9 = 50.

3.6 ÷ 0.4 becomes 36 ÷ 4 = 9.

If the division does not end, as in 10 ÷ 3, the decimal repeats forever (3.333...). Round it to the number of places you need or write it with a dot above the repeating digit. We return to this in the next lesson.

Python Shift and divide

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Multiplying and dividing by 10, 100, 1,000

Move the decimal point (or equivalently, shift all the digits):

  • 3.47 × 10 = 34.7; 3.47 × 100 = 347.
  • 3.47 ÷ 10 = 0.347; 3.47 ÷ 1,000 = 0.00347.

Multiplying by 10 moves the point one place right, dividing by 10 moves it one place left.

Money

Money is the most common use of decimals. Two decimal places represent cents (or other hundredths of the currency unit). A bill: 3 × $4.95 + $2.40 = $14.85 + $2.40 = $17.25. Always write both decimal places, $2.40 not $2.4.

Common mistakes

  • Not aligning decimal points when adding.
  • Putting the decimal point in the wrong place after multiplying.
  • Counting zeros instead of decimal places.
  • Shifting only the divisor, not the dividend.
  • Expecting multiplication by a number below 1 to make a bigger number.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is 12.4 + 3.275?

    Pad 12.4 to 12.400, then add column by column: 15.675.
  2. 2. What is 0.6 × 0.04?

    6 × 4 = 24, with 1 + 2 = 3 decimal places gives 0.024.
  3. 3. What is 3.6 ÷ 0.4?

    Multiply both by 10 to get 36 ÷ 4 = 9.
  4. 4. What is 3.47 × 100?

    Multiplying by 100 moves the decimal point two places right.

Summary

  • Add and subtract by lining up decimal points and padding with zeros.
  • Multiply as whole numbers, then give the product as many decimal places as the factors have together.
  • To divide by a decimal, multiply dividend and divisor by the same power of ten.
  • Multiplying or dividing by 10, 100, 1,000 moves the decimal point.
  • Estimate to check where the decimal point belongs.

Next: Fractions, Decimals and Percentages