A word of warning is here.
I have an application running on the registered user’s desktop, and in MIDDLE testing the application, the DecimalSeparator has changed for me, without restarting the application.
I used to install
DecimalSeparator := '.';
once in the code of FormCreate (), but this is not enough. So now I install it every time before using the FormatFloat () function (used only in one place in my application).
I don’t know WHY this is happening, but there are probably some changes in the system parameter that reset char to ',' on my system.
The best way to avoid this is probably to set the decimal separator in your Windows configuration to. to avoid strange problems ...
source share