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 -.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
amount |
number |
The amount in PKR |
Returns
Section titled “Returns”string
Formatted string (e.g. "Rs. 150,000", "-Rs. 500")
Throws
Section titled “Throws”If amount is NaN or infinite