Debian Codegraph @

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

raw
1 ---
2 title: lang.FormatCurrency
3 description: Returns a currency representation of a number for the given currency and 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.FormatCurrency PRECISION CURRENCY NUMBER]
11 ---
12
13 ```go-html-template
14 {{ 512.5032 | lang.FormatCurrency 2 "USD" }} → $512.50
15 ```
16
17 {{% include "/_common/functions/locales.md" %}}