mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
This commit is contained in:
@@ -1,27 +1,21 @@
|
||||
---
|
||||
title: lang.FormatNumber
|
||||
description: Returns a numeric representation of a number with the given precision for the current language.
|
||||
categories: [functions]
|
||||
description: Returns a numeric representation of a number with the given precision for the current language and region.
|
||||
categories: []
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: functions
|
||||
function:
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/lang/FormatAccounting
|
||||
- functions/lang/FormatCurrency
|
||||
- functions/lang/FormatNumberCustom
|
||||
- functions/lang/FormatPercent
|
||||
returnType: string
|
||||
signatures: [lang.FormatNumber PRECISION NUMBER]
|
||||
relatedFunctions:
|
||||
- lang.FormatAccounting
|
||||
- lang.FormatCurrency
|
||||
- lang.FormatNumber
|
||||
- lang.FormatNumberCustom
|
||||
- lang.FormatPercent
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
{{ 512.5032 | lang.FormatNumber 2 }} → 512.50
|
||||
```
|
||||
|
||||
{{% note %}}
|
||||
{{% readfile file="/functions/_common/locales.md" %}}
|
||||
{{% /note %}}
|
||||
{{% include "functions/_common/locales.md" %}}
|
||||
|
Reference in New Issue
Block a user