# format

function in `@dioramajs/text/counter`

```ts
import { format } from '@dioramajs/text/counter'
```

`value` written the way `w` is: its separators, grouping, decimals and leading zeros.

```ts
function format(value: number, w: Written): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `number` |  |
| `w` | `Written` |  |

Defined in [packages/text/src/counter.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/counter.ts#L163).
