Debian Codegraph @

docs/content/en/functions/lang/FormatPercent.md

raw
1 ---
2 title: lang.FormatPercent
3 description: Returns a percentage 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.FormatPercent PRECISION NUMBER]
11 ---
12
13 ```go-html-template
14 {{ 512.5032 | lang.FormatPercent 2 }} → 512.50%
15 ```
16
17 {{% include "/_common/functions/locales.md" %}}