Formats a given number into a localized string representation in Persian (fa-IR) format. Optionally appends a currency label.
The number to be formatted.
Optional
Whether to append the currency label to the formatted number.
The formatted price string.
formatPrice(123456); // "۱۲۳٬۴۵۶"formatPrice(123456, true); // "۱۲۳٬۴۵۶ تومان" Copy
formatPrice(123456); // "۱۲۳٬۴۵۶"formatPrice(123456, true); // "۱۲۳٬۴۵۶ تومان"
Formats a given number into a localized string representation in Persian (fa-IR) format. Optionally appends a currency label.