Number.toLocaleString() Playground

Mrs. Tini writes price labels with Intl.NumberFormat: rupiah, percent, per kilo, or a compact "1.2M", and formatToParts shows every character the browser…

Why it matters

Prices, percentages, weights, stats: numbers written for people are in every UI. Building them yourself ('Rp ' + n) forgets the group separator, gets decimals wrong and breaks in another currency or language.

The key idea

One number, the right label for every language, through options

Common mistakes

Try it in this playground