Finding a bank reconciliation difference with integer-cent arithmetic in JavaScript
A developer explains how to track down an unbalanced bank reconciliation by treating it as a search over the difference between two balances. To avoid floating-point errors, every amount is converted once into an integer count of cents. Deposits in transit and outstanding payments are applied to the bank balance before comparing it with the books. The approach then checks for transposition errors, which produce differences divisible by 9, wrong-side postings, which double an entry's amount, and missing entries that equal the difference exactly. A worked example with a $710 unrecorded bank payment shows the method in practice.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in