整数除以整数后转成百分比并且保留一位小数

double percent = (double)alreadyRectification / (alreadyRectification + noRectification);
ViewData["rectificationCompletionRate"]= percent.ToString("0.0%");

posted @ 2017-05-22 17:12  飞刀软件  阅读(448)  评论(0编辑  收藏  举报