double percent = (double)alreadyRectification / (alreadyRectification + noRectification); ViewData["rectificationCompletionRate"]= percent.ToString("0.0%");
整数除以整数后转成百分比并且保留一位小数
原文:http://www.cnblogs.com/redfull/p/6890379.html