int a = 10;
int b = 100;
double percent = (double)a/b;
string percentText = percent.ToString("0.0%");//最后percentText的值为10.0%
转载自https://blog.csdn.net/suncherrydream/article/details/12619031
int a = 10;
int b = 100;
double percent = (double)a/b;
string percentText = percent.ToString("0.0%");//最后percentText的值为10.0%
转载自https://blog.csdn.net/suncherrydream/article/details/12619031