lang.FormatAccounting
Returns a currency representation of a number for the given currency and precision for the current language and region in accounting notation.
- Syntax
- lang.FormatAccounting PRECISION CURRENCY NUMBER
- Returns
- string
{{ 512.5032 | lang.FormatAccounting 2 "NOK" }} → NOK512.50Localization of dates, currencies, numbers, and percentages is performed by the bep/golocales package. Hugo determines the locale using the locale configuration setting, falling back to the language key itself. The resolved value must be a locale supported by the package.
Last updated:
October 27, 2026
:
content: Flatten and rename _common snippets (1da4dad14)
Improve this page