9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
/**
|
|
* Format a price in Toman with comma separators
|
|
* @param price - Price in Toman
|
|
* @returns Formatted price string with تومان suffix
|
|
*/
|
|
export function formatPrice(price: number): string {
|
|
return `${price.toLocaleString('fa-IR')} تومان`;
|
|
}
|