# formatNumber

> Formats a number for display with locale-aware decimal/grouping separators and bounded fraction digits, so floating-point noise (e.g. 39.99998784) never reaches the UI unrounded.

> **formatNumber**(`value`, `options?`): `string`

Formats a number for display with locale-aware decimal/grouping separators
and bounded fraction digits, so floating-point noise (e.g. `39.99998784`)
never reaches the UI unrounded.

## Parameters

### value

`number` \| `null` \| `undefined`

### options?

[`FormatNumberOptions`](/utils/api/interfaces/FormatNumberOptions)

## Returns

`string`
