> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Value Errors

:::info
`Value` is a re-export of ox's [`Value`](https://oxlib.sh/api/Value/errors). Refer to the ox documentation for the full reference.
:::

## `Value.InvalidDecimalNumberError`

Thrown when a value is not a valid decimal number.

### Examples

```ts twoslash
// @noErrors
import { Value } from 'viem/utils'

Value.fromEther('123.456.789')
// @error: Value.InvalidDecimalNumberError: Value `123.456.789` is not a valid decimal number.
```

## `Value.InvalidDecimalsError`

Thrown when the `decimals` argument is not a non-negative integer.

### Examples

```ts twoslash
// @noErrors
import { Value } from 'viem/utils'

Value.from('1', -1)
// @error: Value.InvalidDecimalsError: `decimals` must be a non-negative integer. Got `-1`.
```
