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.50
Localization of dates, currencies, numbers, and percentages is performed by the gohugoio/locales package. The language tag of the current site must match one of the listed locales.
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page