# Number

A numeric input. The value is saved as a number, not a string.

Add this field under `fields` in `.pages.yml`:

```yaml
- name: price
  type: number
  options:
    min: 0
    step: 0.01
```

A saved value in YAML or Markdown front matter might look like:

```yaml
price: 12.5
```

## Options

| Option | Description                                                                           |
| ------ | ------------------------------------------------------------------------------------- |
| `min`  | Smallest allowed value.                                                               |
| `max`  | Largest allowed value.                                                                |
| `step` | Increment for the input's arrows, such as `0.01`, or `any`. It isn't checked on save. |
