A useful little explanation
Zero and negative baselines: when percentages need an explanation
A baseline of zero cannot divide anything. A negative baseline can make familiar percentage-change formulas surprisingly slippery. Discrepan.si chooses an explicit convention so you can see what its answer means.
Expected zero: show the gap, leave the percentage undefined
For expected 0 and actual 15, the signed difference is 15. The percentage is undefined because the formula would divide by zero. The tool says “undefined (baseline is zero)” rather than inventing a dramatic growth figure.
Expected 0 and actual 0 still gives a difference of 0 and an undefined percentage. Dividing zero by zero does not establish a 0% result. If you need a percentage, you need an appropriate non-zero reference and must say what that reference represents. Do not silently replace zero with one just to make the calculator happier.
Expected negative: use its absolute size
For expected −100 and actual −80, the signed difference is 20. The tool divides by |−100|, which is 100, and reports 20.00%. Actual is numerically higher even though both inputs are negative.
For expected −100 and actual −120, the difference is −20 and the tool reports −20.00%. A conventional formula that divides by the signed expected value would reverse these percentage signs. That is why the output explicitly says “Change relative to the absolute baseline”. Do not swap conventions midway through a comparison.
Crossing zero is not a business conclusion
Expected −10 and actual 10 gives a difference of 20 and 200.00% relative to the absolute baseline. This describes the arithmetic under the chosen rule. It does not by itself tell you whether a result is twice as successful, a profit improvement, or a meaningful rate of growth.
Very small non-zero baselines can produce large percentages. Expected 0.01 and actual 1 gives a difference of 0.99 and 9900.00%. Read the actual values alongside that percentage: a loud number can still describe a small change in the original unit.
The pocket checklist
- Zero expected value: percentage remains undefined.
- Negative expected value: denominator is its absolute size.
- Positive gap means actual is numerically higher.
- Crossing zero: explain the convention and original units.
- Small baseline: inspect the absolute gap as well.
The calculator accepts finite input values and rejects results that overflow during subtraction or percentage calculation. Use less extreme values if it reports an unsupported range; independently check results that are unusually large or require exact precision.
Compare two numbers →