# Value Errors

## `Value.InvalidDecimalNumberError`

Thrown when a value is not a valid decimal number.

### Examples

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

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

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

## `Value.InvalidDecimalsError`

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

### Examples

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

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

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