Number Representations & States

"how numbers are stored and used in computers"

Absolute Error

Given an exact value and the approximation (e.g. due to rounding in floating-point) as , the absolute error is simply . For example, an exact value that is misrepresented as would have an absolute error of (versus a relative error of ), and an exact value misrepresented as would have an absolute error of (versus a relative error of ).

In general, absolute error fails to capture the significance of the error relative to the scale of the true value. The same absolute error may be negligible or catastrophic depending on the scale, which is why relative error is generally preferred in floating-point analysis.