Rounding, Significant Figures and Decimal Places

Rounding, Significant Figures and Decimal Places#

Rounding#

We round numbers as follows:

  1. Decide to which nearest number or decimal point to round to.

  2. Leave it the same if the next digit is less than 5 (rounding down).

  3. Increase it by 1 if the next digit is 5 or more (rounding up).

Example

Round 467 to the nearest 10.

Solution: So the answer is 470 (we round up to 470 as the digit after the 6 is 7).

Example

Round 0.314 to 2 decimal places.

Solution: So the answer is 0.31 (we round down to 0.31 as the digit after the 1 is a 4).


Rounding in Python can be achieved with the built in round function. This can act on integers or floats alike and takes two arguments, the first is the number to round and the second is how much to round it. A value of 2 as the second argument will round to the two decimal places.

round(0.314, 2)
0.31

To round to the nearest 10 the second argument should be a value of -1 (and to the nearest 100, it would be -2).

round (467, -1)
470

Significant Figures#

Significant figures are used to give us an answer to the appropriate precision. We use s.f. as a short-hand for significant figures. So we write a number to a given number of significant figures as follows:

  • When asked to write a number to \(n\) significant figures, we only display the first \(n\) non-zero digits.

  • Therefore, an answer may require rounding up or down. For example, a temperature of 37.678 °C to 3 s.f. is 37.7 °C.

  • For positive decimals less than 1, we start counting the number of significant figures from the first non-zero number. For example, 0.009436 to 2 s.f. is 0.0094, and not 0.00.

  • We use significant figures on negative numbers in the same way. For example, -137.54 to 2 s.f. is -140.

Important

When multiplying or dividing numbers express to different numbers of significant figures, we leave our answer to the smallest number of significant figures used in the numbers we have multipled or divided. We can think of this as not providing unfounded precision to our result.

Rate of Formation

Below we have the reaction of methoanol and salicyclic acid to from the ester methyl salicylate.

HOC6H5COOH + CH3OH → HOC6H5COCH3 + H2O

The rate of formation of the ester is given by the expression:

\[ \textrm{rate} = k[\textrm{methanol}][\textrm{selicylic acid}] \]

where \(k\) is the rate constant. What is the rate when \(k\) is 3.057 (mol dm-3)-1 s-1, the concentration of methanol is 3 mol dm-3 and the concentration of salicylic acid is 0.86 mol dm-3?

Solution: So substituting these values into the rate equation gives:

\[ \textrm{rate} = 3.057 \times 3 \times 0.86 = 7.88706 \textrm{ mol dm}^{-3}\textrm{s}^{-1} \]

Now our concentration of methanol was expressed in the fewest number of significant figures, in fact to 1 s.f., so we should also leave our answer to 1 s.f.

\[ \textrm{rate} = 8 \textrm{ mol dm}^{-3}\textrm{s}^{-1} \]

Decimal Places#

The correct number of decimal places is used to indicate the correct precision when adding or subtracting. Consider the number 4.5312, which is given to 4 d.p. (decimal places). Hwoever, we could also write this number to 1 d.p., which would be 4.5.

Example

A baker is making a cake and adds to the mixture 100.0 g of flour, 40.2 g of sugar, and 50.134 g of eggs. Calculate the total mass of the cake, to the correct number of decimal places.

Solution: The issue is that the masses in the question are given to different numbers of decimal places. So we must follow these steps:

  1. Add or subtract as normal including all decimal places.

  2. Round the answer to the smallest number of decimal places of the items used in step 1.

Applying these rules to the example:

  1. 100.0 g + 40.2 g + 50.134 g = 190.334 g

  2. Now the smallest number of decimal places in the items we summed in step 1 is 1 d.p. from the 100.0 g of flour and 40.2 g of sugar, so we round our answer from step 1 to 1 d.p. to get the answer 190.3 g.


Some simple Python can compute this, but we need to work out how many decimal places ourselves.

total = 100.0 + 40.2 + 50.134
round(total, 1)
190.3