Absolute and relative error
The two basic measures of the distance between an exact value and its approximation.
Definition
If approximates , the absolute error is and the relative error is (with ). The relative error is dimensionless and lets you compare errors across very different magnitudes.
How it is used
Use relative error to talk about accuracy (correct digits) and absolute error when the problem's scale is fixed, such as a tolerance in metres.