Number System

Roundoff Error

Small colored differences are marked along a measuring strip.

Roundoff Error definition

Roundoff error is the difference introduced when an exact value is replaced by a value available at limited precision.

In Spanish
error de redondeo
Topic
Number bases and digital representations

Roundoff Error in a picture

Roundoff Error diagramRounding exact 1/3 to 0.33 gives a signed error of −1/300.Exact value: 1/3It has a repeating decimal expansionStored approximation: 0.33Use two decimal placesSubtract approximate minus exactThe signed error is −1/300
Rounding exact 1/3 to 0.33 gives a signed error of −1/300.

How it works

With the signed convention approximate minus exact, the error can be positive or negative. Roundoff can arise in representing an input or in storing intermediate results. Repeated operations can amplify or partly cancel individual errors.

Worked examples

Round 7.346 to two decimals and find the signed error.

The approximation is 7.35 and the signed error is +0.004.

Find the absolute error when 1.247 is rounded to 1.25.

|1.25 − 1.247| = 0.003.

Can an exactly representable value have zero roundoff?

Yes, when no rounding changes it.

Common mistake

Specify the sign convention when reporting signed error. The absolute error is nonnegative under either sign convention.

Quick check

What is the signed error when exact 2.04 is rounded to 2.0?

Can roundoff affect intermediate arithmetic?

Show answer

Yes.

What can cause error even with exact arithmetic?

Show answer

Truncating an infinite method to finitely many terms or steps.

Sources

Flashcard

Roundoff Error

Reveal the definition

Roundoff error is the difference introduced when an exact value is replaced by a value available at limited precision.

Effortless Math. “Roundoff Error.” Math Dictionary.