Usage scenario
- Input
- 98; 100
- Result
Calculation steps
Calculate the absolute distance
Divide by the absolute reference value
Convert the ratio to a percentage
With a measurement of 98 and a reference of 100, the signed difference is −2 and absolute error is 2. The ratio is 0.02, giving 2% error. Absolute reference magnitude keeps the denominator positive even for negative references.