pakdatakit/words
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| NumberToWordsOptions | Options for numberToWords. |
| AmountInWordsOptions | Options for amountInWords. |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| WordsLanguage | Language for number words. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| numberToWords | Converts a whole number to words using the Pakistani numbering system (hundred, thousand, lakh, crore, arab, kharab). |
| amountInWords | Writes a rupee amount in words, with paisa, as used on Pakistani cheques and invoices. Amounts are rounded to the nearest paisa. |