| 1 |
--- |
| 2 |
title: lang.FormatAccounting |
| 3 |
description: Returns a currency representation of a number for the given currency and precision for the current language and region in accounting notation. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
params: |
| 7 |
functions_and_methods: |
| 8 |
aliases: [] |
| 9 |
returnType: string |
| 10 |
signatures: [lang.FormatAccounting PRECISION CURRENCY NUMBER] |
| 11 |
--- |
| 12 |
|
| 13 |
```go-html-template |
| 14 |
{{ 512.5032 | lang.FormatAccounting 2 "NOK" }} → NOK512.50 |
| 15 |
``` |
| 16 |
|
| 17 |
{{% include "/_common/functions/locales.md" %}} |