# 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)
