Localize decimal

0
Hi all, The decimal symbol & thousand separator in English and German is different. In English the decimal ‘.’ (point) & thousand separator is ‘,’ (comma) In German the decimal ‘,’ (comma) & thousand separator is ‘.’ (point) Users of my project is in both language. Depending on the language of Windows environment it will be great if decimal symbols are also properly displayed. will appreciate your help on how to do it. regards, rnv 
asked
1 answers
1

See the documentation here: https://docs.mendix.com/refguide8/parse-and-format-decimal-function-calls#1-introduction

If you use the following input:

formatDecimal(1234.56, '#,###.#')

the output is (depending on the language settings):

'1,234.5' or '1.234,5'

So the output is different depending in your are English or German.

Regards,

Ronald
 

answered