Approximations: Rounding and Truncation: Examples
Approximations: Rounding and Truncation: Examples
Contents
1 Truncation 1
2 More on truncation 2
3 Rounding 3
4 More on rounding 5
There are many times when computations are done with approximations to numbers, sometimes by
choice, sometimes because there is no other way. In these pages we look at two ways of approximating
numbers: rounding and truncation.
1 Truncation
Truncation is a method of approximating numbers. It is easier than rounding, but does not always
give the best approximation to the original number. Truncation is used in computing when division
is done with integers and the answer must be an integer.
The number e is
e = 2.718281828459045 . . . .
Sometimes a number is approximated by just ignoring digits. This is called truncation.
Examples
Practice questions
2 More on truncation
• Truncate 0.9765625 to give a number with (a) 1 decimal place, (b) 4 decimal places, (c) 6
decimal places.
Answer: (a) The answer is 0.9. (b) The answer is 0.9765. (c) The answer is 0.976562.
10. Truncate 2.55 to (a) give a whole number, (b) 1 decimal place.
3 Rounding
Approximating numbers by rounding is not quite as straightforward as truncation, but the approx-
imations are better.
π = 3.14159265358979323846264338327950288 . . . .
The decimal goes on forever, but in many calculations we only use a few digits. Computers do not
always work with exact values, and π is a good example of a number whose exact value is not used
when computers or calculators are doing the calculations. Approximations are used for numbers
with infinite or very long decimal expansions. Sometimes approximations are used because keeping
extra decimal places is not needed.
Writing π to 2 decimal places means we write π = 3.14 and do not bother with the other digits. We
write only 2 digits after the decimal point.
If we want π to 4 decimal places we could write 3.1415, but π is much closer to 3.1416. We round π
to 4 decimal places. This means that we use 4 digits after the decimal point, but we use the number
that is closest to the real value of π. When we round a number we choose the number with the
correct number of digits which is closest to the original number.
Examples
0 1 2 3 4 5 6 7 8 9 10
• π rounded to 1 decimal place is 3.1 (3.14. . . is closer to 3.1 than to 3.2). To see this, zoom in
on the segment from 3 to 4 in the line above:
π = 3.14159 . . .
3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0
• π rounded to 2 decimal places is 3.14 (3.141. . . is closer to 3.14 than to 3.15). To see this,
zoom in on the segment from 3.1 to 3.2 in the line above:
π = 3.14159 . . .
3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 3.20
3.140 3.141 3.142 3.143 3.144 3.145 3.146 3.147 3.148 3.149 3.150
• π rounded to 4 decimal places is 3.1416 (3.14159. . . is closer to 3.1416 than to 3.1415). To see
this, zoom in on the segment from 3.141 to 3.142 in the line above:
π = 3.14159 . . .
3.1410 3.1411 3.1412 3.1413 3.1414 3.1415 3.1416 3.1417 3.1418 3.1419 3.1420
• 45.6 rounded to the nearest integer (whole number) is 46 (45.6 is closer to 46 than to 45).
• 7 651.23 rounded to the nearest integer is 7 651 (7 651.23 is closer to 7 651 than to 7 652).
Each time we had to decide what to do with the last digit kept (leave it as it is or increase it by 1).
Mostly we just look at the following digit. If the following digit is greater than 5, increase the last
digit. If the following digit is less than 5, leave the last digit as it is. If the following digit is 5 and
there are more (non-zero) digits, increase the last digit. If the following digit is 5 and there are no
more digits, we have a choice (we deal with this soon).
The same applies to negative numbers; we select the number with the correct number of digits which
is closest to the original number.
Here are some more examples
• Round 10.3756 to 2 decimal places: 10.38 (as 10.3756 is closer to 10.38 then to 10.37);
• Round −10.3756 to 2 decimal places: −10.38 (as −10.3756 is closer to −10.38 than to −10.37);
• Round 9.999 to 1 decimal place: 10.0 (as 9.999 is closer to 10.0 than to 9.9);
• Round −9.999 to 1 decimal place: −10.0 (as −9.999 is closer to −10.0 than to −9.9);
In these examples we saw that the minus sign, “−”, at the front of the negative numbers didn’t
change what is done to the digits. In general, rounding negative numbers is no different to rounding
positive numbers.
• Round 9.15 to 1 decimal place: 9.1 and 9.2 are both possible answers as they are the same
distance from 9.15.
Rounding a number like 9.15 to 1 decimal place can be done in several ways. There is no one correct
answer. Some always round up (giving 9.2 in this case), some down (giving 9.1). Another option
is to round up or down so as to make the last digit even. This is not the easiest method, but is
by far the best for data collection (for example, measuring heights of people) as the average of the
data collected will be more accurate. Using this method, 9.15 rounded to one decimal place is 9.2
(because 2 is even).
Using the method of rounding a 5 (which has no digits after it) up or down so as to make the last
digit even we get
• 345.6565 rounded to 1 decimal place is 345.7 (as it is closer to 345.7 than to 345.6).
Practice questions
13. Round 2.718281828459 to (a) the nearest whole number, (b) 1 decimal place, (c) 4 decimal
places, (d) 7 decimal places.
14. Round −2.718281828459 to (a) the nearest whole number, (b) 1 decimal place, (c) 4 decimal
places, (d) 7 decimal places.
4 More on rounding
6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0
Alternatively, the answer is either 6 or 7. To decide which, we look at the digit after the
decimal point. It is the 8 in 6.817. As 8 is greater than 5, we increase the 6 (the 6 in 6.817)
so it becomes 7. The answer is 7.
• Round 0.9765625 to (a) 1 decimal place, (b) 4 decimal places, (c) 6 decimal places.
Answer: (a) 0.9765625 is between 0.9 and 1.0. It is closest to 1.0, as can be seen from the
number line. So 1.0 is the answer.
0.9765625
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
Or, we can look at the digit after the 9 (the 9 in 0.9765625), which is 7. As 7 is greater than
5, we increase the 9. This means that we go up from 0.9 to 1.0.
(b) The answer is either 0.9765 or 0.9766, but which one? As 0.9765625 is closest to 0.9766,
0.9766 is the answer.
Or, find the digit in the 4th decimal place, this is 5 (the 5 in 0.9765625). Now find the digit
following this, which is 6 (the 6 in 0.9765625). As 6 is greater than 5, we increase 5 by 1 to
get 0.9766.
(c) The answer is 0.976562 or 0.976563. These are the same distance from 0.9765625 so either
can be considered correct. If we want to round to make the last digit of the answer even, then
we take 0.976562 as the answer. Or, find the digit in the 6th decimal place, this is 2 (the 2
in 0.9765625). The 2 is followed by 5, and there is nothing after the 5. So we can take either
0.976562 or 0.976563 as the answer. If we want to round up or down to make the last digit of
the answer even, then we take 0.976562 as the answer.
20. Round 2.55 to (a) the nearest whole number, (b) 1 decimal place.
2. 9.1.
3. 234.
4. 234.87.
5. −234.87.
10. Truncate 2.55 to (a) give a whole number, (b) 1 decimal place. (a) 2 (b) 2.5.
11. 9.
12. 235.
15. −222.1234 or −222.1235 as they are both the same distance from −222.12345.
20. Round 2.55 to (a) the nearest whole number, (b) 1 decimal place. (a) 3 (b) 2.6 (2.5 is also
acceptable).
21. 35.
22. 34.
23. 235.
24. 234.
25. 44.4.
26. 44.4.
27. −45.68.
28. −45.67.