# to\_integer

Source: https://zotonic.com/docs/1955/to_integer

URI: https://zotonic.com/id/1955

Language: en



Convert the input to an integer value.

Example:

```django
{{ "123"|to_integer }}
```

Results in the integer value `123`.

This filter uses the `z_convert:to_integer/1` function.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1955?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1955?language=en>)
