> For the complete documentation index, see [llms.txt](https://docs.haven1.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.haven1.org/build/developer-tools/haven1-sdk/haven1-wagmi-sdk/utility-module/formatbigint.md).

# formatBigint

## Function: formatBigint()

> **formatBigint**(`value`, `decimals`, `displayDecimals`?): `string`

Format bigint to string with decimals

### Parameters

#### value

`bigint`

The bigint value to format.

#### decimals

`number`

The number of decimal places to consider.

#### displayDecimals?

`number`

Optional number of decimal places to display.

### Returns

`string`

### Defined in

[packages/wagmi/src/util/bigint.ts:35](https://github.com/haven1network/haven1-sdk/blob/df6267fec7b75040411529269f9c6a88e9c756ee/packages/wagmi/src/util/bigint.ts#L35)
