Number cleaner
Turn pasted amounts in any format into clean signed values, one per line.
Number cleaner, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
How the number cleaner works.
Number cleaner: paste anything a report throws at you — (1,234.56), 1.234,56, 1,234.56-, $ 1 234.56, 1.2k — get clean signed values, one per line, ready for the tape or Excel.
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 data hygiene
Learn what it computes
- Accounting · Lesson 1 · 7 minWhy the books existBookkeeping is a system built so that errors show up and every figure traces back to something that happened.
- Accounting · Lesson 8 · 9 minCash, accrual and cut-offCash accounting records when money moves. Accrual records when value moves. Most of the hard questions in this course live in the gap between them.
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.
- ComponentMoneyThe core primitive. A monetary value, formatted correctly.
- ComponentTransactionTableThe workhorse. Virtualized, sticky, priority-collapsing.
- ComponentStatementTableThe shared shell: hierarchy, periods, rules.
- TermBasisCash or accrual
- DocNumericsThese are the rules that make Lopifi a finance system instead of a dashboard kit. The rest of the library enforces them on the consumer's behalf.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.