string a = "1.1";
string b = "2.2";
string c = a + b;
Response.Write(c);
现在才C是1.12.2 我想等于3.3 怎么转换
string a = "1.1";
string b = "2.2";
string c = a + b;
Response.Write(c);
现在才C是1.12.2 我想等于3.3 怎么转换
......先转换成浮点型人后相加~再转换成字符型不就OK了嘛
string c = Convert.ToDouble(a)+Convert.ToDouble(b);
如此即可