Skip to content

amountInWords

function amountInWords(amount, options?): string;

Defined in: words.ts:261

Writes a rupee amount in words, with paisa, as used on Pakistani cheques and invoices. Amounts are rounded to the nearest paisa.

Parameter Type Description
amount number Amount in PKR (must be zero or more)
options? AmountInWordsOptions Output language and cheque style

string

The amount in words

amountInWords(125000.5);
// "one lakh twenty-five thousand rupees and fifty paisa"
amountInWords(125000, { cheque: true });
// "Rupees One Lakh Twenty-Five Thousand Only"
amountInWords(125000, { language: 'ur' });
// "ایک لاکھ پچیس ہزار روپے"

If amount is negative, not finite, or too large