Issues with using a dot and comma for double values

Hi all,

I created a program in the US that uses a double value input from the user. It works as intended. However, if you switch the language on the robot, my program runs into an issue where the my FloatingDecimal.parseDouble() method doenst work anymore, due to the string change from a “.” to a “,”. Is this a bug on the UR side or do I have to do something like:
MyText.setText(MyText.getText().replaceALL("//,", “/./”); before parsing into a double?