> 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/bigintfromdecimals.md).

# bigintFromDecimals

## Function: bigintFromDecimals()

> **bigintFromDecimals**(`value`, `decimals`, `rounded`): `bigint`

Convert number to bigint with decimals

### Parameters

#### value

`string`

The string representation of the value.

#### decimals

`number`

The number of decimal places to consider.

#### rounded

`boolean` = `true`

Optional boolean indicating whether the value should be rounded. Defaults to true.

### Returns

`bigint`

converted bigint value

### Defined in

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