Currency amount formatting in a fintech app, before and after

Currency amount formatting is the set of rules that decide how money reads on a screen: which symbol or code, which separators, how many decimals, which sign, and where the digits line up. In a fintech app those rules decide whether a person reads their balance right the first time, or opens a support ticket to ask what the number means.
We took one screen every multi-currency account has, the balances and the latest activity, and drew it twice for an invented product we call Pellam. First as it often ships: every number is correct, and a third of them can be read two ways. Then remade. Below are the eight changes, in the order the eye meets them, each with its reason and its source.
What the screen looked like before
The old screen opens on one large total, $12,480.5. Under it sit four account cards: euros written 4.212,40 €, dollars $5,441.51, pounds £980.5, yen ¥184,000.00. The activity list sets every amount flush left in a proportional font, and money out is told from money in by a lighter grey alone. A banner offers to convert at 1 EUR = 1.08 USD. On a phone, the euro balance shrinks to €4.2K.
No figure there is wrong. Each one asks the reader to work something out: which dollar, which decimal mark, whether a line is money in or out, and what the rate costs. Someone checking whether the rent money is there shouldn't have to.
1. Say which dollar
The dollar sign belongs to at least six currencies in common use: the US, Canadian, Australian, New Zealand, Hong Kong and Singapore dollar. Shopify's Polaris guidelines split money into a short format, $12.50, and an explicit one, $12.50 CAD, and keep the explicit one for screens where more than one currency can appear (Polaris, formatting localized currency). A multi-currency account is that screen by definition.
So the total on the new screen reads US$12,480.50, and every account card carries its three-letter ISO code beside the symbol. JavaScript's Intl.NumberFormat already does part of the work: format US dollars for a Canadian reader and it writes US$100; ask for currencyDisplay: "narrowSymbol" and it drops back to $100 (MDN, Intl.NumberFormat). The narrow symbol is the right call on a single-currency screen. Here it's the wrong one.
2. Format for the reader, once per screen
The old screen wrote euros the German way and dollars the American way, because each card took the convention of its currency's home country. That's backwards. Separators belong to the person reading, and the money has no say. A reader in Dublin expects €4,212.40; a reader in Berlin expects 4.212,40 €; French puts a narrow no-break space between thousands; Indian English groups by lakh, 1,23,456.79 (W3C, number, currency and unit formatting).
The new screen takes one locale, the account holder's, and applies it to every amount on the page, whatever the currency. With two conventions on one screen, the reader decides number by number whether a dot marks decimals or thousands. With one, the question never comes up.
The same rule reaches the input. An amount field with inputmode="decimal" opens a keypad with the decimal separator of the user's locale, a dot or a comma (MDN, inputmode). The parser behind the field has to accept whichever one the keypad offers.
3. Give each currency its own decimals
Two decimals is a habit of the dollar and the euro. ISO 4217 gives every currency its own minor unit: the yen has none, the Kuwaiti and Bahraini dinar have three (Adyen, currency codes and minor units). ¥184,000.00 invents cents that don't exist, and a dinar balance cut to two places hides a real amount.
The new screen reads ¥184,000 and £980.50, the second with the trailing zero the old one dropped. Underneath, every amount lives as an integer in its minor unit next to its currency code, which is how Stripe's API takes them: 1000 is 10 US dollars, 500 is 500 yen (Stripe, supported currencies). Floating point never touches a balance. The decimals are decided once, at the edge, when the number is drawn.
4. Line the digits up
In a proportional font a 1 is narrower than an 8, so a column of amounts zigzags and the eye can't compare them. The CSS property font-variant-numeric: tabular-nums switches on digits of equal width, the OpenType tnum feature, so the same places stack (MDN, font-variant-numeric). Most interface fonts carry it. Check yours before relying on it.
The new screen right-aligns every amount in the activity list, so units sit under units and the decimal points form one line. The description stays on the left. The reader scans down the right edge and sees at once which payment was the large one.
5. Show the sign, not only the shade
Telling debits from credits by colour alone fails anyone who can't see the colour. WCAG success criterion 1.4.1 asks that colour is never the only means of conveying information, and the W3C's explanation names green for good and red for bad as the case to watch (W3C, Understanding SC 1.4.1). The old screen did it with two greys, which is the same failure at lower contrast.
The new screen writes the sign: −€45.00 for money out, +€1,800.00 for money in, with a minus as wide as the plus (the Unicode minus, U+2212, in place of a hyphen). The sign comes before the symbol and the amount, as Polaris advises. Colour can stay as a second cue. Statements and exports for an accountant can switch to parentheses, which Intl.NumberFormat writes with currencySign: "accounting": (€45.00).
6. Name both balances
A card payment is authorised first and settled later, sometimes days later. In between, the money is held. Banks call the figure before holds the current or ledger balance, and the one after holds the available balance. The US Consumer Financial Protection Bureau set out the difference in a 2022 circular on overdraft fees charged on payments that were authorised against a positive balance and settled against a negative one (CFPB Circular 2022-06). The bureau withdrew that circular on 12 May 2025 (CFPB, withdrawn guidance). The mechanics it describes haven't changed.
A screen with one balance leaves the reader to guess which one it shows. The new screen puts the available figure large, because that's what can be spent, and one line under it: €135.00 on hold, 2 card payments. Tapping the line lists them.
7. Give the rate its decimals, its time and its fee
1 EUR = 1.08 USD rounds away the part of the rate where the margin often sits. The new screen shows the rate to four decimals, the time it was quoted, how long it holds, and the fee on a line of its own, then the amount that will arrive. For card payments in the EU, Regulation (EU) 2019/518 already requires the conversion charge to be shown as a percentage mark-up over the European Central Bank's latest euro reference rate, before the payment (Regulation (EU) 2019/518). A conversion screen built the same way answers the question before the reader thinks to ask it. It's the logic of our piece on fees before the signature in a crypto wallet.
The total gets the same honesty. Adding four currencies into one dollar figure is a conversion too, so the new screen labels it as an estimated total in US dollars, at the rates of 09:40.
8. Never shorten a balance
On a narrow screen the old version wrote €4.2K. Compact notation is fine on a chart axis, where the reader wants a shape. On a balance it throws away the €12.40 someone may be counting on, and on a phone it's the only figure they see. The new layout lets the balance take the full width of its card and steps the type size down as the number grows, instead of cutting digits or adding an ellipsis.
What this costs to build
Less than it looks. Every change above comes from one formatting function that takes an integer in minor units, a currency code and the reader's locale, and returns a string through Intl.NumberFormat. The screen never formats money itself. We test that function against a handful of locales (en-IE, de-DE, fr-FR, en-IN, ja-JP) and three currency shapes (zero, two and three decimals), and every screen inherits the result. The hard part is agreeing, before the first screen is drawn, that money has one formatter and nobody writes toFixed(2).
The remade screen keeps every number the old one had and adds no feature. It answers, before anyone asks, the four questions the old one raised: which currency, how much, in or out, and at what cost. For the states a payment goes through after this screen, see our teardown of a failed transfer's status page.
Sources
- Shopify Polaris: Formatting localized currency
- MDN: Intl.NumberFormat() constructor
- W3C Internationalization: Number, currency, and unit formatting
- MDN: inputmode
- Adyen: Currency codes and minor units
- Stripe: Supported currencies
- MDN: font-variant-numeric
- W3C: Understanding SC 1.4.1 Use of Color
- CFPB: Circular 2022-06, Unanticipated overdraft fee assessment practices
- CFPB: Withdrawn guidance
- EUR-Lex: Regulation (EU) 2019/518
Frequently asked questions
Store each amount as an integer in the currency’s minor unit, with the ISO 4217 code in a column beside it: 1000 and USD for ten dollars, 500 and JPY for five hundred yen. Floating point types cannot represent many decimal fractions exactly, so sums drift by fractions of a cent. A fixed-point type such as Postgres numeric also works, as long as the scale follows the currency. Exchange rates are a different kind of number and keep more decimals than any balance.
The reader’s, which in practice means the language and region the app runs in, from the device or a setting the person chose. A German freelancer with a euro account opened in Ireland still reads 4.212,40 €. The account country decides which currency a balance is in and which rules apply to it; it does not decide the separators. Offer the choice in settings, and use the same locale for every amount on every screen once it is chosen.
Fewer than the asset has, and never fewer than the person needs. Ether divides into 10^18 wei and USDC into six decimals, so a full-precision balance is a wall of digits. A common approach is to show a stablecoin like a currency, with two decimals, and a volatile asset with enough places that a typical payment changes the last digit, while the detail view and any export keep the full figure. Whatever rule you pick, the rounding happens at display time only, and the amount sent is the amount stored.
Related articles
November 24, 2026 · 9 min read
August 26, 2026 · 9 min read
September 27, 2026 · 8 min read