Given the number 4030.146852312
I want to retrieve the four decimal places from this number, resulting in:
4030.1468
Furthermore, I need to format this number according to the specified locale. For example:
4.030,1468
What is the best way to achieve this?