How to replace . and , in a string that is number eg:-49.768,0000 should be equal to 49,768.00

when working with numberformats we recommend to handle it via CultureInfo and and not with String Manipulations.

grafik

Double.Parse(YourVar, System.Globalization.CultureInfo.CreateSpecificCulture("de-DE")).toString("N2")
4 Likes