Treatment when converting data

1

I want to convert String to Double already know how to do, but my string has, (comma) and the double does not accept, how do I turn this comma into point? Can someone help me?

    
asked by anonymous 08.06.2018 / 18:56

1 answer

1

Replace takes the first item and replaces the second in the applied variable.

string = string.replace(",", ".");
    
08.06.2018 / 18:59