Sub topic 9
Adding, multiplying, and rounding with significant figures
This chapter assumes you can count significant figures in a measured number, including the rules for leading zeros, trailing zeros and scientific notation. It also assumes you are comfortable with decimal places and powers of ten. Here you learn how to carry significant figures through a calculation without claiming more precision than your data support.
Two rules, two different things to count
A calculated result can be no more certain than the least certain number that went into it. The two operations measure "least certain" in different ways.
| Operation | What you compare | What the answer keeps |
|---|---|---|
| Addition or subtraction | Decimal places | The fewest decimal places among the inputs |
| Multiplication or division | Significant figures | The fewest significant figures among the inputs |
Addition and subtraction depend on the position of the last reliable digit. Multiplication and division depend on how many reliable digits each number has.
Addition and subtraction
Line up the numbers and find the one whose last digit is furthest to the left. Round the result to that position.
a = 12.11 # 2 decimal places
b = 18.0 # 1 decimal place
c = 1.013 # 3 decimal places
total = a + b + c
print(total) # 31.123 (raw sum)
print(round(total, 1)) # 31.1 (keep 1 decimal place, set by b)The raw sum is 31.123, but b is only known to the tenths place. The hundredths and thousandths digits of the sum are therefore meaningless, and the answer is 31.1.
Subtraction can cost you significant figures. In 5.26 − 5.21 = 0.05, both inputs have three significant figures, but the answer has one. The leading digits cancel and only the uncertain digits remain.
Multiplication and division
Count the significant figures in each input. The answer keeps as many as the input with the fewest.
from decimal import Decimal, ROUND_HALF_UP
def round_sig(x, n):
"""Round x to n significant figures."""
d = Decimal(str(x))
exp = d.adjusted() - n + 1 # power of ten of the last kept digit
return d.quantize(Decimal(1).scaleb(exp), rounding=ROUND_HALF_UP)
length = 4.5 # 2 significant figures
width = 2.31 # 3 significant figures
area = length * width
print(area) # 10.395
print(round_sig(area, 2)) # 10The area is 10 m², with two significant figures, because the length has only two. Writing it as 1.0 × 10¹ m² shows that the trailing zero is significant.
Rounding rules
When you drop digits, look at the first digit being discarded.
- If it is less than 5, leave the last kept digit unchanged.
- If it is greater than 5, or a 5 followed by nonzero digits, increase the last kept digit by 1.
- If it is exactly 5 with nothing after it, the usual textbook convention is to round up. Some courses round to the nearest even digit instead. Follow the convention your exam uses.
Round only once, at the end. If you round at each step, small errors build up.
Common errors
- Applying the significant-figure count to a sum. A sum follows decimal places, not significant figures.
- Treating exact numbers as uncertain. Counts such as 3 oscillations, and definitions such as 100 cm = 1 m, have unlimited significant figures and never limit the result.
- Rounding intermediate values. Keep one or two extra digits during the calculation and round at the end.
- Dropping the zero. A result of 2.50 has three significant figures, and 2.5 has two. They are not the same claim.
Exercise
A block has length 12.5 cm, width 3.2 cm and height 1.05 cm. Give its volume with the correct number of significant figures. Then add 0.0215 m and 3.1 m and give the sum with the correct precision.
Show answer
The volume is 12.5 × 3.2 × 1.05 = 42.0 cm³ (raw value). The width has the fewest significant figures, two, so the volume is 42 cm³ (4.2 × 10¹ cm³). For the sum, 0.0215 + 3.1 = 3.1215 m. The value 3.1 is known only to one decimal place, so the sum is 3.1 m.