Rounding

Approximating numbers by rounding is not quite as straightforward as truncation, but the approximations are better.

The number π (pi) is

π=3.14159265358979323846264338327950388…

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 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 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

Each time we had to decide what to do with the last digit kept (leave it as is or increase it by $1$). mostly we just had to 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:

In these examples we saw that the minus sign, "$-$", at the front of the negative number didn't change what is done to the digits. In general, rounding negative numbers is no different to rounding positive numbers.

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 it 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:

Practice questions

Round 9.15 to an integer (whole number).

Round 234.876 to the nearest whole number.

Round 2.718281828459 to give an integer.

Round 2.718281828459 to 2 decimal places.

Round 2.718281828459 to 4 decimal places.

Round 2.718281828459 to 7 decimal places.

Round −2.718281828459 to give an integer.

Round −2.718281828459 to 2 decimal places.

Round −2.718281828459 to 4 decimal places.

Round −2.718281828459 to 7 decimal places.

Round −222.12345 to 4 decimal places.