(int) 与 Convert.ToInt32()

((xEnd - xStart) / newSize) + 1 = 172.99999999

 

int Width = (int)((xEnd - xStart) / newSize) + 1;  = 172

 

int xNum = Convert.ToInt32((xEnd - xStart) / newSize) + 1; =173

posted @ 2019-05-09 17:46  麦格雷超  阅读(416)  评论(0编辑  收藏  举报