110,534
社区成员
发帖
与我相关
我的任务
分享
double total = DataGrid.cell(1,1).IntegerValue;
DataGrid.Cell(1, 2).Text = (((int)total * 0.01)).ToString();
math.round(xxx,2)
int i = 3776;Console.Write(Math.Round(i * 0.01,2)); 37.76
DataGrid.Cell(1, 2).Text = (total * 0.01).ToString();
或者
DataGrid.Cell(1, 2).Text = (total * 0.01).ToString("F2");