Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'

This commit is contained in:
Bjørn Erik Pedersen
2023-12-04 15:24:01 +01:00
810 changed files with 24147 additions and 7766 deletions

View File

@@ -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" %}}