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