Docmerge number format

Hi,

I have made a template with several formulas. Sometimes amount is shown as 8,414.00 and sometimes it shows 8.414,00
Is there a way to manipulate the format?