Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Talk to us

Difference diagnoser

Name the keying error behind an out-of-balance: transposition, slide, sign flip or omission.

Difference diagnoser, worked

Loading the tool…

Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.

How the difference diagnoser works.

Difference diagnoser: Out by 8,100 → divisible by 9 → transposition, and difference ÷ 9 says how much the two swapped digits differ by. Also catches a line omitted or posted twice, a sign flip (half the gap is a figure in the data), a decimal slide (the "off by a factor of 10"), and per-line rounding.

Quoted from the toolbelt spec, the document this tool was built against.

Where these numbers come from.

Negatives are parenthesized because that’s what a statement does. The rest is four promises.

  • Minor units, never floats

    Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.

  • Rounded in the right place

    Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.

  • Unit tested

    The arithmetic lives in one unit-tested module, and the extension uses the same one.

  • No network

    There is no request to make. What you type stays in this tab and is gone when you close it.

More in reconciliation & investigation

Read it in context

Learn what it computes

The same number, elsewhere.

A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.