How to add dot as thousand separator and comma as decimal separator?

How to add dot as thousand separator and comma as decimal separator?

Hello, 

Is it possible to change the function below to show dot as the thousand separator and comma as the decimal separator?

string frmt.formatNumber(float value)
{
    formatted_number = (input.value.toString()).replaceAll(("(?<!\.\d)(?<=\d)(?=(?:\d\d\d)+\b)"),",");
    return formatted_number;
}


For example:

1234.56 to 1.234,56
12345.67 to 12.345,67
12345678.90 to 12.345.678,90

Thanks,

Ademir