Files
hugoDocs/content/functions/int.md
T

23 lines
456 B
Markdown

---
title: int
linktitle: int
description: Creates an `int` from the argument passed into the function.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [functions]
tags: [strings,integers]
signature:
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
Creates an integer (`int`) from the argument passed into the function. Useful for turning strings into numbers.
```
{{ int "123" }} → 123
```