Lately I've been building Tarifo , an Android app for people who price a job before doing it: plumbers, electricians, painters, cleaners, freelancers. You write the estimate at the customer's place, send it as a PDF on WhatsApp or by e-mail, and turn it into an invoice when they say yes.
There's no account and no backend. Everything happens on the phone, and it has to work with no signal, because a job often gets priced in a basement or on a roof. It also ships in 20 languages and 53 currencies, which is where most of the interesting problems came from.
Here are the few things I ended up being strict about.
Money is an integer, and the currency decides the decimals
Two decimals feels like a safe default until you meet the Japanese yen (no decimals) or the Kuwaiti dinar (three). So amounts are stored as integers in minor units, and the number of decimals comes from the currency itself. You don't need a table for that, the platform already knows:
new Intl .…