第1个回答 2011-10-27
string percent = "50%";
string p = percent.Substring(0, 2);
double p1 = int.Parse(p)*0.01;本回答被提问者采纳
第2个回答 2011-10-26
思路,取%左边所有的字符串,转换成数字格式做除法运算。
第3个回答 2019-09-02
string percent = "50%";
string p = percent.TrimEnd("%");
double p1 = int.Parse(p)*0.01;