toString and using the proper user locale

0
Currently we have a situation in which we use the toString function in an expression that generates the validation message. To that message we pass a float value. The user sees the UI in the Dutch locale thus sees numbers using a , as the decimal seperator. When we call the toString the default system locale is being used in the Mendix cloud (en_US I assume) so that string uses a . instead of the , Is it possible to tell the toString function which locale is to be used? And shouldn't it be that always the locale of the current request should be obeyed when aclling the toString?
asked
1 answers
1

See: https://docs.mendix.com/refguide6/Parse+and+format+decimal+function+calls

FormatDecimal uses the currentUser's locale.

So this should do the job:

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