words library
Numbers and rupee amounts in words (English and Urdu).
Same as the pakdatakit/words entry point of the npm package.
Enums
- WordsLanguage
- Language for number words.
Functions
-
amountInWords(
num amount, {WordsLanguage language = WordsLanguage.en, bool cheque = false}) → String - Writes a rupee amount in words, with paisa, as used on Pakistani cheques and invoices. Amounts are rounded to the nearest paisa.
-
numberToWords(
num n, {WordsLanguage language = WordsLanguage.en}) → String - Converts a whole number to words using the Pakistani numbering system (hundred, thousand, lakh, crore, arab, kharab).