Loadingβ¦
Loadingβ¦
See how an amount is written in different countries: symbols, separators, and decimals for 30 currencies and 14 locales, with the JavaScript code.
Also covers: Money formatter Β· Intl.NumberFormat currency
Try a negative number with accounting format.
Formatted by locale
Loadingβ¦
JavaScript
new Intl.NumberFormat("en-US", {style: "currency",currency: "EUR",currencyDisplay: "symbol",notation: "standard"}).format(1234567.891)Any amount, including negatives, in one of 30 common currencies.
Show the currency as a symbol, narrow symbol, code, or name; use compact notation like β¬1.2M; and brackets for negatives in accounting format.
See the same amount written for the US, UK, India, Germany, France, Japan, and more, and copy the Intl.NumberFormat code for your app.
Countries use different decimal and thousands separators (1,234.56 vs 1.234,56), put the symbol before or after the number, and group digits differently: India writes 12,34,567.89.
Some currencies have no minor unit in everyday use. The Japanese yen and Korean won are formatted without decimals.
Yes: it uses the browser's built-in Intl.NumberFormat, the same API your JavaScript code uses. Output can differ slightly between browser versions as locale data is updated.
Shopping
Work out a sale price and savings from a percentage off, stack an extra discount, or find the discount percentage or the original price.
Dining
Calculate the tip and total for a bill, split it between people, tip on the pre-tax amount, and round up the total or each share.
Sharing
Split a bill evenly, or share trip and group expenses: record who paid what and get the fewest payments to settle up.
Tax
Add VAT, GST, or sales tax to a net price, or take it out of a tax-inclusive price, at any rate.
Shopping
Compare the price per 100 g, per kg, per litre, per ounce, or per item across pack sizes to find the best value.
Loans
Calculate the monthly payment (EMI) for a personal, car, or student loan, the total interest, and a full amortization schedule, with extra payments.