﻿# integer

> Validate integer values

[Types](/docs/dotenv-toml/type/)

A signed or unsigned whole number, such as `42` or `-1`.

```toml
[env.WORKERS]
type = "integer"
```

Validation leaves the value as a string. Storage defaults to `"any"` and redaction is off. Set `storage = "encrypted"` and `redacted = true` for secrets.

Use [`min`](/docs/dotenv-toml/min/) and [`max`](/docs/dotenv-toml/max/) to narrow the allowed range.

## Related

- [Dotenv.toml Quickstart](/docs/dotenv-toml/quickstart/)
- [Full Dotenv.toml Spec](/docs/dotenv-toml/spec/)
