string a = “100.00”;
string b = “”;
try
{
b = Regex.Replace(a, “(\.[1-9])0$”, “$1”);
//ResultString.TrimEnd(.); //todo
}
catch (ArgumentException ex)
{
}
Console.WriteLine(b);
string a = “100.00”;
string b = “”;
try
{
b = Regex.Replace(a, “(\.[1-9])0$”, “$1”);
//ResultString.TrimEnd(.); //todo
}
catch (ArgumentException ex)
{
}
Console.WriteLine(b);
1059
1018
7227

被折叠的 条评论
为什么被折叠?
