拼接字符串后小数点多了0,之前为decimal类型,拼接后加入换行符只是多了空格,DataTable dr = new DataTable();部分代码
DataTable dr = new DataTable();
string a = d3["element"].ToString();
string b = d3["lower"].ToString();
string c = d3["upper"].ToString();
string d = d3["proportion"].ToString();
string e = d3["amount"].ToString();
str = b + "≤" + a + "<" + c + "每" + d + "%调整" + e;
str = b + "<" + a + "≤" + c + "每" + d + "%调整" + e;
dr.Rows[i - 1]["ruleFe"] += str + "\r\n";