toString and using the proper user locale

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?
1 answers


FormatDecimal uses the currentUser's locale.

So this should do the job:

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