mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-09 19:37:36 -04:00
25 lines
475 B
Markdown
25 lines
475 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]
|
|
ns:
|
|
signature: ["int INPUT"]
|
|
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
|
|
```
|