# Number schema

Learn how to define numeric values.

Number schemas describe numeric values such as prices, quantities, and percentages.

![Number input](/assets/reference/content/schema/number.png)

The input for a number schema is a text field that only accepts numbers, either integers or decimals, depending on the schema's configuration.

## Examples

Below are some examples of number schemas:

**Basic**

```json
{
  "type": "number"
}
```

**Integer**

```json
{
  "type": "number",
  "integer": true
}
```

**Range**

```json
{
  "type": "number",
  "minimum": 0,
  "maximum": 100
}
```

## Properties

The following properties are available for number schemas:

- `type`: `string`

  The type of the schema. Always `number` for number schemas.

- `integer`: `boolean` (optional) (default: )

  Whether to allow integral numbers only.

- `minimum`: `number` (optional) (default: no minimum)

  The minimum allowed value (inclusive).

- `maximum`: `number` (optional) (default: no maximum)

  The maximum allowed value (inclusive).
