> For the complete documentation index, see [llms.txt](https://racoon-js.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://racoon-js.gitbook.io/en/api/number/int.md).

# int

## Effect

Restrict the detected number to be an integer.

## Arguments

None

## Example

```javascript
const schema = racoon.number().int();
schema.validate(1); // pass
schema.validate(1.0); // pass
schema.validate(1.2); // fail
```
