Money

A number that stands for money breaks in ways other numbers do not: a cent appears from rounding, a capture runs twice, two systems disagree at the end of the day. Each lesson here shows one of those breaks, then the rule that keeps the books whole.

01
MINOR UNITS AND CURRENCIES
Not every currency has two decimals
L214 MIN
02
RESIDUAL CENT
Round the whole once, then share it out
L215 MIN
03
DOUBLE SPEND
Two withdrawals, one balance, both approved
L215 MIN
04
AUTHORISE, CAPTURE, REFUND
A card payment is a state machine, not a row of flags
L216 MIN
05
SETTLEMENT FLOAT
Credited is not settled: the money in between is still someone's
L215 MIN
06
RECONCILIATION
Two records of one day, and three reasons they disagree
L216 MIN
07
CHARGEBACKS
A dispute is a state machine with a clock on every state
L216 MIN