mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-09-12 10:19:06 +00:00
23 lines
456 B
Markdown
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
|
|
``` |