PakDataKit - v2.2.0
    Preparing search index...

    Function amountInWords

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

      Parameters

      • amount: number

        Amount in PKR (must be zero or more)

      • options: AmountInWordsOptions = {}

        Output language and cheque style

      Returns 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