From eb921ab1c8557295ec516454ab9b1536a1d48e45 Mon Sep 17 00:00:00 2001 From: King Date: Sat, 27 Jan 2018 10:20:52 -0500 Subject: [PATCH] update example and results --- snippets/toCurrency.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snippets/toCurrency.md b/snippets/toCurrency.md index 1151b7690..40cc19b8b 100644 --- a/snippets/toCurrency.md +++ b/snippets/toCurrency.md @@ -9,9 +9,9 @@ const toCurrency = (n, curr, LanguageFormat = undefined) => new Intl.NumberForma ``` ```js -toCurrency(123456.789, 'EUR') // number: €123,456.79 | currency: Euro | currencyLangFormat: Local -toCurrency(123456.789, 'USD', 'en-us') // number: €123,456.79 | currency: US Dollar | currencyLangFormat: English (United States) -toCurrency(123456.789, 'USD', 'fa') // number: ۱۲۳٬۴۵۶٫۷۹ ؜$ | currency: US Dollar | currencyLangFormat: Farsi -toCurrency(322342436423.2435, 'JPY') // number: ¥322,342,436,423 | currency: Japanese Yen | currencyLangFormat: Local -toCurrency(322342436423.2435, 'JPY', 'fi') // number: 322 342 436 423 ¥ | currency: Japanese Yen | currencyLangFormat: Finnish +toCurrency(123456.789, 'EUR') // €123,456.79 | currency: Euro | currencyLangFormat: Local +toCurrency(123456.789, 'USD', 'en-us') // €123,456.79 | currency: US Dollar | currencyLangFormat: English (United States) +toCurrency(123456.789, 'USD', 'fa') // ۱۲۳٬۴۵۶٫۷۹ ؜$ | currency: US Dollar | currencyLangFormat: Farsi +toCurrency(322342436423.2435, 'JPY') // ¥322,342,436,423 | currency: Japanese Yen | currencyLangFormat: Local +toCurrency(322342436423.2435, 'JPY', 'fi') // 322 342 436 423 ¥ | currency: Japanese Yen | currencyLangFormat: Finnish ```