# Value.from

Parses a `string` representation of a Value to `bigint` (multiplied by the given exponent).

## Imports

:::code-group
```ts [Named]
import { Value } from 'ox'
```

```ts [Entrypoint]
import * as Value from 'ox/Value'
```
:::

## Examples

```ts twoslash
import { Value } from 'ox'

Value.from('420', 9)
// @log: 420000000000n
```

## Definition

```ts
function from(
  value: string,
  decimals?: number,
): bigint
```

**Source:** [src/core/Value.ts](https://github.com/wevm/ox/blob/main/src/core/Value.ts#L279)

## Parameters

### value

* **Type:** `string`

The string representation of the Value.

### decimals

* **Type:** `number`
* **Optional**

The exponent to multiply the Value by.

## Return Type

The `bigint` representation of the Value.

`bigint`
