docs/content/en/functions/lang/FormatNumber.md
raw| 1 | --- |
| 2 | title: lang.FormatNumber |
| 3 | description: Returns a numeric representation of a number with the given precision for the current language and region. |
| 4 | categories: [] |
| 5 | keywords: [] |
| 6 | params: |
| 7 | functions_and_methods: |
| 8 | aliases: [] |
| 9 | returnType: string |
| 10 | signatures: [lang.FormatNumber PRECISION NUMBER] |
| 11 | --- |
| 12 | |
| 13 | ```go-html-template |
| 14 | {{ 512.5032 | lang.FormatNumber 2 }} → 512.50 |
| 15 | ``` |
| 16 | |
| 17 | {{% include "/_common/functions/locales.md" %}} |