Const
Converts a numeric value to its Persian word representation
The number to convert (can be number or string with commas)
Configuration options for the conversion
Persian word representation of the number or TypeError if invalid
numberToWords(123) // "صد و بیست و سه"numberToWords("1,000") // "یک هزار"numberToWords(3, { ordinal: true }) // "سوم" Copy
numberToWords(123) // "صد و بیست و سه"numberToWords("1,000") // "یک هزار"numberToWords(3, { ordinal: true }) // "سوم"
Converts a numeric value to its Persian word representation