Skip to content

formatPKR

function formatPKR(amount): string;

Defined in: format.ts:28

Formats a numeric amount as Pakistani Rupees with comma separators, rounded to whole rupees. Negative amounts are prefixed with -.

Parameter Type Description
amount number The amount in PKR

string

Formatted string (e.g. "Rs. 150,000", "-Rs. 500")

If amount is NaN or infinite