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日期、貨幣、數字和百分比的本地化由 gohugoio/locales 包執行。當前站點的語言標簽必須與列出的語言區域之一匹配。