1. 程式人生 > >整數除以整數後轉成百分比並且保留一位小數

整數除以整數後轉成百分比並且保留一位小數

read ble 保留 rect style data rate ica string

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

整數除以整數後轉成百分比並且保留一位小數