NU4–NU6 - Rounding, chopping and precision
NU4 explains limited numerical representation. NU5 investigates loss of relative precision when nearly equal quantities are subtracted. NU6 uses rounding and chopping to calculate individual, maximum, average and expected errors, while keeping the arithmetic model and its precision explicit.
A displayed number need not be exact
A calculation needs , a small positive number. In an arithmetic system retaining significant figures, the square root becomes . Subtracting then produces zero. How can an exact algebraic rearrangement recover a useful answer from the same precision?
The difficulty starts with representation. A finite store of digits cannot represent every real number exactly. For example, has no terminating decimal representation. A stored is an approximation, even if it is displayed without a warning.
You already know
Signed absolute error is approximate minus exact. Relative error divides by the exact non-zero value. Rounding intermediate stages changes a calculation; retaining more digits at those stages can reduce avoidable error.
Display precision and stored precision can differ: a calculator or spreadsheet may show fewer digits than it retains internally. Changing the display alone is different from deliberately replacing a value by its rounded or chopped form before the next operation.
Limited precision
A numerical representation has limited precision when only a fixed amount of digit information is retained. Later arithmetic uses that retained approximation, so small representation errors may propagate or grow.
A decimal terminating fraction need not terminate in another base: has no finite binary expansion, because a denominator containing a factor cannot divide a power of .
The examples below use explicitly stated decimal arithmetic models, not a claim that every calculator stores exactly those decimal digits.
Key idea
A long-looking answer is not evidence that all its digits are accurate. Separate the exact input, the stored approximation and the displayed result.
The loss in the opening subtraction will become clearer once the rounding step and the small difference are tracked separately.
Round to the nearest value; chop by discarding digits
Rounding chooses a nearest representable value at the specified precision. Chopping simply removes the digits beyond that precision. For a negative number, chopping moves towards zero; it is not the same as rounding down towards negative infinity.
Count decimal places from the decimal point. Count significant figures from the first non-zero digit: , for example, becomes to significant figures, not to decimal places. At an exact halfway value, use the stated midpoint convention; the signed examples below avoid halfway cases.
Error bounds for a fixed decimal step
Suppose the retained values are spaced by . Rounding to the nearest value gives
Chopping towards zero gives
These use signed error . A fixed decimal step applies within the specified precision range.
Not in the formula booklet: learn it.
For decimal places, . Significant-figure spacing also depends on the number's size, so identify the retained place before applying a bound.
Worked example 1: a positive input
Question. Round and chop the exact value to significant figures. Find the signed absolute error in each result.
Plan. The third significant figure is in the hundredths place; inspect or discard the later digits.
Why this step? Chopping does not inspect the next digit and round up. It leaves the retained digits unchanged.
Answer. Rounded value , error ; chopped value , error .
Check. , and the positive-value chopping error lies between and zero.
Change only the sign of the exact input. Nearest rounding reflects the previous answer, while chopping still discards digits towards zero.
Worked example 2: a negative input
Question. Round and chop to significant figures, and find both signed absolute errors.
Plan. Apply the precision rule to the magnitude, retain the minus sign, then calculate signed errors.
Why this step? Chopping to would move away from zero and change a retained digit. That is not digit truncation.
Answer. Rounded value , error ; chopped value , error .
Check. The magnitudes match the positive-input errors, but their signs reverse.
A negative signed error means the approximation lies below the exact value on the number line. It does not necessarily mean that its magnitude is too small.
Watch out
Wrong: chop to because chopping “goes down”. Right: chopping discards digits, giving . It differs from the floor operation on negative numbers.
Change the size of the negative input, so the retained decimal place changes too.
Unknown exact values need interval bounds
If you know only a rounded or chopped approximation, you do not know the actual error. You know an interval containing the exact value. Use that interval to obtain a bound, rather than substitute the approximate value into a denominator defined to be exact.
For a fixed approximation and a positive exact value ,
This decreases as increases. The endpoints therefore identify the extreme signed relative errors. This endpoint argument is not a separate booklet formula; it follows from the definition of relative error.
Worked example 3: a rounded integer
Question. The approximation was obtained by rounding a positive exact value to the nearest integer. In halfway cases, positive values are rounded upwards. Find the exact-value interval and the maximum possible magnitude of the relative error.
Plan. Write the rounding interval, then compare the relative errors at its two bounding endpoints.
Why this step? The exact denominator changes across the interval. Using would miss the worst case, which occurs at the smallest possible exact value.
Answer. , and the maximum relative-error magnitude is , approximately .
Check. At , the approximation is exactly too large, and the resulting relative error attains the stated maximum.
Change only the representation rule: the same positive approximation is now obtained by chopping.
Worked example 4: a chopped integer
Question. A positive exact value is chopped to give . Find its possible interval and a sharp bound for the magnitude of relative error.
Plan. Use the interval from discarding fractional digits, then locate the largest error magnitude as approaches its upper endpoint.
Why this step? Both the discrepancy and the exact denominator approach their limiting values together. Using is not the sharp bound.
Answer. , with relative-error magnitude less than , approximately .
Check. Values just below give errors as close to as desired. The bound is a limiting value; the excluded endpoint means it is not attained.
A question may call such a limiting bound the maximum possible error. Keep the endpoint distinction clear, and use the exact-value interval to justify the number.
Exam tip
In a relative-error bound, determine which exact value gives the extreme ratio. Do not replace that denominator by the rounded or chopped approximation merely because it is the number printed in the question.
Change only the sign of the chopped approximation.
Watch out
Wrong: is the sharp relative-error bound after chopping to . The definition divides by the unknown exact value, and the largest discrepancy occurs as that value approaches . Correct: , with the limiting bound not attained.
Keep the exact denominator and endpoint inclusion in view for the negative case below.
A worst case and an expectation answer different questions
A maximum-error bound allows all input errors to reinforce one another. An expected error instead uses a probability model for the discarded digits. You cannot infer an average error from a precision statement alone.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account