See How Things Work

Rounding decimals

Unit
Decimals
Part
1. Decimal Notation
Lesson
1.4

To round a decimal to the nearest whole number, tenth or hundredth is to replace it by the closest number that has no digits after that place. This lesson carries the definitions and proofs of rounding whole numbers over to decimals, states the halfway convention, treats the 9s that carry across the decimal point, and compares rounding with truncating, which simply cuts the digits off.

Rounding to a place after the point

A price of $3.459 per gallon, a time of 10.573 seconds or a length of 2.4781 meters often carries more digits than needed. As with whole numbers, a number is rounded to get an approximate value when the exact value is not needed⁠[1], and decimals are rounded in the same way as whole numbers, to a chosen place.⁠[2] Rounding a decimal to any place is a standard skill of place value.⁠[3] This lesson extends the lesson Rounding to the nearest ten, hundred or thousand to the places of the lesson Decimal place value. As there, a rounded value is written with the sign ≈, “is approximately equal to”, instead of the equal sign.⁠[4]

Below, P stands for one of the places ones, tenths, hundredths, thousandths. A decimal is made of whole units of P if all its digits to the right of P are 0 (or it has none): 2.4 and 2.40 are made of whole tenths, 2.45 is not. With P = ones these are the whole numbers.

Definition (Rounding to the nearest whole number, tenth, hundredth, …).

To round a decimal n to the nearest P is to replace n by the decimal made of whole units of P that is closest to n on the number line. When n lies exactly halfway between two of them, it is replaced by the greater one, by the same convention as for whole numbers: mathematicians have agreed to round such numbers up, so that everyone rounds the same way.⁠[5][6]

Proposition 1 (the neighbors).

Let n be a decimal with digits to the right of P. Let L be n with all its digits to the right of P removed, and let U be L with one more unit of P: the digit of P goes to the next digit, and a 9 there becomes 0 while the place on its left goes up, as in the successor rule (Place Value, lesson 1.1), across the decimal point if needed. Let M be L with the digit 5 written in the place just right of P. Then L ≤ n < U, M lies halfway between L and U, and no decimal made of whole units of P lies strictly between L and U.

Theorem 1.

With L, M and U as in Proposition 1: if n < M, then n is closer to L; if n > M, then n is closer to U; if n = M, it is equally far from both. Every other decimal made of whole units of P is farther from n. So n rounded to the nearest P is L when n < M, and U when n ≥ M (and n itself when it is already made of whole units of P).

Proof.

Write n, L, M and U with the same number k of decimal places, k at least one more than the places of P, and let j be the number of places from P to the last place (j = k for P = ones). By Theorem 1 of the lesson Decimals as fractions, the four numbers are ND, AD, BD and CD, all with the same D, 1 followed by k zeros. Their points are N, A, B and C steps of 1D from 0 (Fractions on the number line), so the distance between any two of them, counted in these steps, is the distance between the whole numbers N, A, B, C on the line of whole numbers.

In these whole numbers, the digits to the right of P are the last j digits. So A is N with its last j digits replaced by 0; C is the next number with that many zeros at the end; and B is A with 5 in the first of those places. For j = 1, 2, 3 these are the neighboring whole tens, hundreds or thousands of N and their midpoint, and a decimal is made of whole units of P exactly when its numerator is a whole ten, hundred or thousand. Proposition 2, the Lemma and Theorem 1 of the lesson Rounding to the nearest ten, hundred or thousand give all the statements. For longer decimals (j more than 3) the same proofs work with the next larger groups of ten.

7 hundredths3 hundredths2.42.452.5midpoint2.47
Figure. 2.47 between its neighboring whole tenths 2.4 and 2.5, on a line marked in hundredths. It is 7 hundredths from 2.4 and 3 hundredths from 2.5, past the midpoint 2.45, so 2.47 ≈ 2.5 to the nearest tenth.
Example (Neighbors and midpoints).

Find L, U and M for 2.47 to the nearest tenth, for 27.583 to the nearest hundredth, and for 3.96 to the nearest tenth.

  1. 2.47, tenths: L = 2.4, U = 2.5, M = 2.45. Since 2.47 > 2.45 (lesson Comparing decimals), 2.47 ≈ 2.5.
  2. 27.583, hundredths: L = 27.58, U = 27.59, M = 27.585. Since 27.583 < 27.585, 27.583 ≈ 27.58.
  3. 3.96, tenths: L = 3.9. The tenths digit is 9, so one more tenth turns it into 0 and the ones digit 3 into 4: U = 4.0. M = 3.95. Since 3.96 > 3.95, 3.96 ≈ 4.0.

Answer: 2.5, 27.58, 4.0. In the last case the carry crosses the decimal point, exactly as the successor rule crosses places.

The rule from the digits

Theorem 2 (the rounding rule).

To round a decimal to the nearest P, look at the digit just to the right of P (a missing digit counts as 0).

  • If it is 0, 1, 2, 3 or 4, round down: keep the digits up to P and remove the digits to the right of P.
  • If it is 5, 6, 7, 8 or 9, round up: give P one more unit by the successor rule (a 9 becomes 0 and the place on its left goes up), and remove the digits to the right of P.
Proof.

Write n and M with the same number of places. To the left of the digit d just right of P they agree, and M has 5 there and zeros after it. By the place-by-place comparison of the lesson Comparing and ordering decimals: if d is 0 to 4, n < M; if d is 6 to 9, n > M; if d is 5, then n > M when some later digit of n is not 0, and n = M otherwise. By Theorem 1 and the halfway convention, the result is L exactly when d is 0 to 4, and U otherwise. L is n with the digits right of P removed, and U is L with one more unit of P.

This is the textbook method, based on the one for whole numbers.⁠[7] Find the place, look at the digit to its right⁠[8], decide, and rewrite the number without the digits to the right of the place.⁠[9] The digit in the given place either stays the same or goes up by one.⁠[10]

  1. Find the place P to round to.
  2. Look at the digit just to its right.
  3. If that digit is 0 to 4, keep the digit of P; if it is 5 to 9, apply the successor rule to P.
  4. Remove every digit to the right of P that stands after the decimal point. Digits to the right of P that stand before the point (when P is tens, hundreds, …) become 0, as in the lesson Rounding to the nearest ten, hundred or thousand.
Caution.

Zeros to the left of the decimal point must be kept: 1,294.6 rounded to the nearest hundred is 1,300, not 13.⁠[11]

Convention.

After the point, a rounded result may end in 0, as 3.96 rounded to the nearest tenth, 4.0, does. Practice differs. Some textbooks drop such zeros and write 4⁠[10]; the NIST guide to the SI keeps them, writing 7.0 for a number rounded to two digits.⁠[12] Both are correct, since 4.0 and 4 are the same number (Decimal place value). This lesson keeps the zeros: it writes 4.0, one digit in each place up to P, so that the place rounded to stays visible.

Example (One decimal, three places).

Round 26.4581 to the nearest hundredth, the nearest tenth and the nearest whole number.

  1. Hundredth: the hundredths digit is 5; the digit to its right is 8, 5 or more: round up to 26.46.
  2. Tenth: the tenths digit is 4; the digit to its right is 5, with 81 after it: round up to 26.5.
  3. Whole number: the ones digit is 6; the tenths digit 4 is less than 5: round down to 26.

Answer: 26.46, 26.5, 26. Check the tenth on the line: 26.4581 lies between 26.4 and 26.5, past the midpoint 26.45, since 26.4581 > 26.4500 (lesson Comparing and ordering decimals).

Example (Exactly halfway).

Round 2.45 to the nearest tenth, 0.5 to the nearest whole number and 3.125 to the nearest hundredth.

  1. 2.45: the digit after the tenths place is 5, with nothing after it, so 2.45 is the midpoint of 2.4 and 2.5. By the convention, 2.45 ≈ 2.5.
  2. 0.5: the midpoint of 0 and 1; it rounds up: 0.5 ≈ 1.
  3. 3.125: the midpoint of 3.12 and 3.13; it rounds up: 3.125 ≈ 3.13.

Answer: 2.5, 1, 3.13. These are the only cases in which the convention matters; in every other case the nearer neighbor is determined by the number itself.

Example (9s that carry, and numbers smaller than the place).

Round 9.995 to the nearest hundredth, 0.04 to the nearest tenth and 0.0049 to the nearest hundredth.

  1. 9.995: the digit after the hundredths place is 5 with nothing after it, so round up. The hundredths digit 9 becomes 0, the tenths digit 9 becomes 0, and the ones digit 9 becomes 0 while the empty tens place becomes 1: 10.00.
  2. 0.04: the hundredths digit 4 is less than 5: round down to 0.0, which is 0. On the line 0.04 is 4 hundredths from 0 and 6 from 0.1.
  3. 0.0049: the thousandths digit 4 is less than 5: round down to 0.00, which is 0.

Answer: 10.00, 0.0, 0.00. A result of 0 is correct: the number is closer to 0 than to one unit of the place.

Example (A mistake: rounding in two steps).

Someone rounds 2.449 to the nearest tenth by first rounding it to the nearest hundredth. Find the error.

  1. First step: 2.449 ≈ 2.45 to the nearest hundredth.
  2. Second step: 2.45 is the midpoint of 2.4 and 2.5, so it rounds up to 2.5.
  3. Directly: the digit after the tenths place of 2.449 is 4, so 2.449 ≈ 2.4. Indeed 2.449 < 2.450, before the midpoint. The first step moved the number onto the midpoint, and the convention pushed it to the farther neighbor.

Answer: 2.449 rounded to the nearest tenth is 2.4, not 2.5. Always round the original number, once.

Game

Round it

Round
1
Score
0
Streak
0

Round 3.6594 to the nearest tenth.

3.63.73.6594

Rounding and truncating

Definition (Truncating).

To truncate a decimal at a place P is to remove all its digits to the right of P, without looking at them. Truncating to a whole number discards everything after the point, the part that is not a whole number.⁠[13]

Proposition 2.

Truncating n at P always gives L, the lower neighbor of Proposition 1, and moves n by less than one unit of P. Rounding gives L or U and moves n by at most half a unit of P: at most 5 units of the place just right of P.

Proof.

Truncating removes the digits to the right of P, which is the definition of L. By Proposition 1, L ≤ n < U, and U is one unit of P from L, so n is less than one unit from L. Rounding gives the nearer of L and U, and by Theorem 1 the nearer one is at most as far as the midpoint M is from either, which is 5 units of the next place.

Example (Rounding and truncating 2.79 and 3.141).
  1. 2.79 to tenths: truncating gives 2.7; rounding gives 2.8, since the hundredths digit 9 is 5 or more. 2.8 is 1 hundredth away, 2.7 is 9 hundredths away.
  2. 3.141 to hundredths: truncating gives 3.14, and so does rounding, since the thousandths digit 1 is less than 5.

Answer: the two agree exactly when the digit after P is 0 to 4; when it is 5 to 9, rounding goes up and truncating does not.

In the United States, gasoline prices are usually posted with the decimal part in thousandths of a dollar.⁠[14] The amount actually paid is in cents, hundredths of a dollar, so the final price is rounded to the nearest cent.⁠[15] At $3.459 per gallon, one gallon costs $3.46, since the thousandths digit 9 is 5 or more; truncating would give $3.45.

Convention.

Rounding halfway numbers up is the convention of this site and of the textbooks cited here, not a law of mathematics. Other rules are in use. The NIST guide to the SI gives a rule for a discarded 5 followed only by zeros: the digit before it is unchanged if it is even and increased by 1 if it is odd, so that the last digit is always even.⁠[16] By that rule 2.45 rounds to 2.4 and 2.55 to 2.6, while this lesson rounds them to 2.5 and 2.6. The rounding built into the programming language Python also settles a tie “toward the even choice”: there round(0.5) and round(−0.5) are 0 and round(1.5) is 2.⁠[17] Python also warns that rounding 2.675 to two places gives 2.67 instead of the expected 2.68, because most decimals cannot be stored exactly as the computer’s floating-point numbers.⁠[18]

Which decimals round to a given decimal

Theorem 3.

Let r be a decimal made of whole units of P, other than 0. The nonnegative decimals that round to r to the nearest P are those from the midpoint below r, included, up to the midpoint above r, not included. For r = 0 they are those from 0 up to the midpoint above 0, not included.

Proof.

With the numerators of the proof of Theorem 1, this is Theorem 3 of the lesson Rounding to the nearest ten, hundred or thousand, applied to the whole numbers counting steps of 1D. Directly: n rounds to r when n = r; when r is n’s lower neighbor and n is before the midpoint above r; or when r is n’s upper neighbor and n is on or past the midpoint below r (Theorem 1).

2.42.452.52.552.62.5
Figure. To the nearest tenth, the decimals that round to 2.5 fill the shaded stretch from 2.45, included (filled dot), up to 2.55, not included (open ring): 2.55 itself rounds up to 2.6.
Example (A rounded value as a range).

A length is given as 2.5 meters, rounded to the nearest tenth. What could the decimal length have been?

  1. The neighboring whole tenths of 2.5 are 2.4 and 2.6; the midpoints are 2.45 and 2.55.
  2. By Theorem 3, the decimals that round to 2.5 are those with 2.45 ≤ n < 2.55.
  3. Check the ends: 2.45 is a midpoint and rounds up to 2.5; 2.55 is a midpoint and rounds up to 2.6; 2.549 rounds down to 2.5.

Answer: any decimal from 2.45 up to, but not including, 2.55. The rounded value is off by at most 0.05 m, half a tenth (Proposition 2).

Looking ahead.

Reading a rounded number as a range of possible values is the theme of the lesson Estimation and, for measurements, of the lessons Upper and lower bounds, Significant figures and Rounding results sensibly in the unit Measurement & Units.

Exercises

Exercise .

Round 4.76 to the nearest tenth, 0.832 to the nearest hundredth, 15.5 to the nearest whole number and 7.0049 to the nearest thousandth.

▸ Show solution
  • 4.76 to tenths: hundredths digit 6, round up: 4.8.
  • 0.832 to hundredths: thousandths digit 2, round down: 0.83.
  • 15.5 to the whole number: tenths digit 5 and nothing after it, halfway, round up: 16.
  • 7.0049 to thousandths: ten-thousandths digit 9, round up: 7.005.
Exercise .

Round 46.258 to the nearest hundredth, tenth, whole number and ten.

▸ Show solution
  • Hundredth: the thousandths digit 8 is 5 or more, so the hundredths digit 5 goes to 6: 46.26.
  • Tenth: the hundredths digit is 5, with 8 after it, so round up: the tenths digit 2 goes to 3: 46.3.
  • Whole number: tenths digit 2, round down: 46.
  • Ten: ones digit 6, round up: 50.
Exercise .

Round 99.97 to the nearest tenth and to the nearest hundredth.

▸ Show solution

Tenth: the hundredths digit 7 is 5 or more. The tenths digit 9 becomes 0 and the ones digit 9 becomes 0, and the tens digit 9 becomes 0 while the hundreds place becomes 1: 100.0.

Hundredth: the thousandths digit is missing, so it counts as 0: 99.97 is already made of whole hundredths and stays 99.97.

Exercise .

An amount of $12.346 must be written in whole cents. What does truncating give, and what does rounding to the nearest cent give?

▸ Show solution

Truncating gives $12.34; rounding gives $12.35, since the thousandths digit 6 is 5 or more. The difference is one cent. Truncating always gives the lower amount; rounding gives the nearer one.

Exercise .

True or false: “Rounding a decimal to the nearest tenth and then rounding the result to the nearest whole number always gives the same result as rounding it to the nearest whole number directly.”

▸ Show solution

False. 0.45 rounded to the nearest tenth is 0.5 (halfway, round up), and 0.5 rounded to the nearest whole number is 1 (halfway again). But 0.45 rounded to the nearest whole number directly is 0, since its tenths digit 4 is less than 5.

Exercise .

A decimal rounds to 3.7 to the nearest tenth and to 3.70 to the nearest hundredth. Which decimals with at most three places are possible?

▸ Show solution

To the nearest tenth the decimals that round to 3.7 are 3.65 ≤ n < 3.75; to the nearest hundredth those that round to 3.70 are 3.695 ≤ n < 3.705 (Theorem 3).

The second range lies inside the first, so the decimals with both properties are those from 3.695 up to, but not including, 3.705. With three places: 3.695, 3.696, …, 3.704, ten of them.

Summary

  1. To round a decimal to the nearest whole number, tenth, hundredth, … is to replace it by the closest number with no nonzero digits right of that place; exactly halfway rounds up, by convention.
  2. The two candidates are L, the decimal cut off after the place, and U, one unit of the place more (9s carry, across the point if needed); their midpoint has a 5 in the next place.
  3. The rule: if the digit just right of the place is 0 to 4, keep the place digit; if it is 5 to 9, go up one; then remove the digits after the place, but keep zeros before the point.
  4. Truncating always gives L and can be off by almost a whole unit of the place; rounding is off by at most half a unit.
  5. Always round the original number in one step; the decimals that round to r run from the midpoint below r up to, but not including, the midpoint above.

Sources

  1. 1.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 378 (the whole topic: pp. 378–381).
    “we round numbers to get an approximate value when the exact value is not needed”
    Used for: a number is rounded to get an approximate value when the exact value is not needed (the sentence recalls the chapter on whole numbers).
  2. 2.
    The NROC Project, “Ordering and Rounding Decimals”, Developmental Math: An Open Program, The NROC Project.
    “Rounding with decimals is like rounding with whole numbers. As with whole numbers, you round a number to a given place value.”
    Used for: decimals are rounded like whole numbers, to a chosen place.
  3. 3.
    “Number & Operations in Base Ten, Grade 5”, Common Core State Standards Initiative (National Governors Association and Council of Chief State School Officers).
    Section “Understand the place value system (CCSS.Math.Content.5.NBT.A.4)”. thecorestandards.org/Math/Content/5/NBT · open at the quoted passage.
    “Use place value understanding to round decimals to any place.”
    Used for: rounding decimals to any place is a standard skill of place value.
  4. 4.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.7, “Simplify and Use Square Roots” (“Approximate Square Roots with a Calculator”), p. 449 (the whole topic: pp. 449–450).
    “When we report the answer, we should use the “approximately equal to” sign instead of an equal sign.”
    Used for: a rounded value is written with the sign ≈, “approximately equal to”, instead of the equal sign.
  5. 5.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.1, “Introduction to Whole Numbers” (“Round Whole Numbers”), p. 15 (the whole topic: pp. 15–19).
    “So that everyone rounds the same way in cases like this, mathematicians have agreed to round to the higher number”
    Used for: a number exactly halfway is rounded to the greater neighbor; this is a convention, agreed so that everyone rounds the same way.
  6. 6.
    The NROC Project, “Rounding Whole Numbers”, Developmental Math: An Open Program, The NROC Project.
    “When a number is halfway between the two possible numbers, round up to the greater number.”
    Used for: a number exactly halfway between the two candidates is rounded up, to the greater one.
  7. 7.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 379 (the whole topic: pp. 378–381).
    “We use a method based on the one we used to round whole numbers.”
    Used for: decimals are rounded by a method based on the one for whole numbers.
  8. 8.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 379 (the whole topic: pp. 378–381).
    “Step 2. Underline the digit to the right of the given place value.”
    Used for: the rule looks at the digit just to the right of the place.
  9. 9.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 379 (the whole topic: pp. 378–381).
    “Step 4. Rewrite the number, removing all digits to the right of the given place value.”
    Used for: the rounded number is written without the digits to the right of the place.
  10. 10.
    The NROC Project, “Ordering and Rounding Decimals”, Developmental Math: An Open Program, The NROC Project.
    “When you round, everything to the right of the given place value becomes a zero, and the digit in the given place value either stays the same or rounds up one. Trailing zeros after the decimal point should be dropped.”
    Used for: the digit in the given place stays the same or goes up by one; this textbook drops trailing zeros after the point.
  11. 11.
    The NROC Project, “Ordering and Rounding Decimals”, Developmental Math: An Open Program, The NROC Project.
    Section “Rounding Decimals (Example: Round 1,294.6374 to the nearest hundred)”. content.nroc.org/DevelopmentalMath/TEXTGROUP-1-8_RESOURCE/U03_L1_T2_text_final.html · open at the quoted passage.
    “Zeros to the left of the decimal must be included.”
    Used for: zeros to the left of the decimal point must be kept (the page’s example: 1,294.6374 rounded to the nearest hundred is 1,300).
  12. 12.
    “NIST Guide to the SI, Appendix B: Conversion Factors”, National Institute of Standards and Technology (NIST Special Publication 811).
    “6.974 951 5 rounded to 2 digits is 7.0”
    Used for: the NIST guide to the SI keeps a final zero after rounding, writing 7.0 for a number rounded to two digits.
  13. 13.
    Eric W. Weisstein, “Truncate”, MathWorld, A Wolfram Resource.
    “To truncate a real number is to discard its noninteger part.”
    Used for: truncating to a whole number discards the part that is not a whole number; the lesson’s definition extends this to any place.
  14. 14.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 378 (the whole topic: pp. 378–381).
    “In the United States, gasoline prices are usually written with the decimal part as thousandths of a dollar.”
    Used for: in the United States gasoline prices are usually written with the decimal part in thousandths of a dollar.
  15. 15.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 5, “Decimals”, section 5.1, “Decimals” (“Round Decimals”), p. 378 (the whole topic: pp. 378–381).
    “because the final price would be rounded to the nearest cent”
    Used for: the amount paid for gasoline is rounded to the nearest cent.
  16. 16.
    “NIST Guide to the SI, Appendix B: Conversion Factors”, National Institute of Standards and Technology (NIST Special Publication 811).
    “If the digits to be discarded begin with a 5 and all of the following digits are 0, the digit preceding the 5 is unchanged if it is even and increased by 1 if it is odd.”
    Used for: the NIST guide’s rule for a discarded 5 followed only by zeros: the digit before it stays if it is even and goes up by 1 if it is odd (the guide adds that the final digit is then always even).
  17. 17.
    “Built-in Functions: round()”, The Python Standard Library, Python Software Foundation.
    Section “round(number, ndigits=None)”. docs.python.org/3/library/functions.html · open at the quoted passage.
    “if two multiples are equally close, rounding is done toward the even choice (so, for example, both round(0.5) and round(-0.5) are 0, and round(1.5) is 2)”
    Used for: Python’s built-in rounding settles a tie toward the even choice: round(0.5) and round(−0.5) are 0, round(1.5) is 2.
  18. 18.
    “Built-in Functions: round()”, The Python Standard Library, Python Software Foundation.
    Section “round(number, ndigits=None), Note”. docs.python.org/3/library/functions.html · open at the quoted passage.
    “round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float.”
    Used for: rounding 2.675 to two places in Python gives 2.67 instead of 2.68, because most decimals cannot be stored exactly as floating-point numbers (binary fractions).