How a budgeting app parses Vietnamese money shorthand like 2,5tr and 500k

A budgeting app called Financial Plan has to interpret amounts typed the way Vietnamese people actually write them, such as 2,5tr, 500k, or 2.500.000. Vietnamese uses separators in the opposite way to English, and phone keyboards have trained many users to write decimals with a dot, so the same mark can mean different things. The app stores every amount as a text field that opens a numeric keypad, then converts the text to a number when saved. A unit like k, tr, or tỷ tells the parser the dot or comma is a decimal point, while a bare figure in đồng treats separators only as grouping. Reformatting while typing is limited to unambiguous whole figures, and the remaining ambiguity, such as a bare decimal in đồng, is left for the user to resolve by typing a unit.
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