This works as the docs suggest {{ 1040 | lang.NumFmt 2 }} → 1.040,00

But I do not understand this error when I replace the amount with .Params.price where price in frontmatter is set to be 1040:

execute of template failed: template: _default/tour.html:10:55: executing “_default/tour.html” at <lang.NumFmt>: error calling NumFmt: unable to cast of type to float64`

I use Hugo v0.73

Maybe there is another problem.

This should work:

markdown file:

price: 1040

template file:

{{ with .Params.price }}
  {{ . | lang.NumFmt 2 }}
{{ end }}

thanks a ton. I should have known better :frowning: