# formatPKR

Source: https://pakdatakit.dev/api/typescript/format/functions/formatpkr/

```ts
function formatPKR(amount): string;
```

Defined in: [format.ts:28](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/format.ts#L28)

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

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `amount` | `number` | The amount in PKR |

## Returns

`string`

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

## Throws

If `amount` is `NaN` or infinite
