且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

c#中的数字格式。

更新时间:2023-02-10 20:40:42

你试过替换所有' ''里面有','。您可以使用简单的替换命令。



Have you tried replacing all the '.' inside with a ','. You can use a simple replace command.

string str = "0.52";
str = str.ToString().Replace(".", ",");