Reference articles on history, science, culture and more
Encyclopedia

Numerical error

Image credit is listed at the end of this article.

Numerical error is the error that arises in numerical computations due to limitations in representing real numbers and performing arithmetic operation on computers. These errors commonly appear in software engineering and mathematics.

01Types

Numerical error in computations generally arises from several sources. The most common sources are round-off error and truncation error.

It can be the combined effect of two kinds of error in a calculation. The first is referred to as round-off error and is caused by the finite precision of computations involving floating-point numbers. The second, usually called truncation error, is the difference between the exact mathematical solution and the approximate solution obtained when simplifications are made to the mathematical equations to make them more amenable to calculation.

02Measure

Floating-point numerical error is often measured in ULP (unit in the last place), which represents the distance between two adjacent floating-point numbers.

Watch videos about Numerical errorExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Numerical error, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.