將小數x值四捨五入成整數 double x; (int)(x+0.5) 2-3-2 (string) System Convert string str = "123"; int a = System.Convert.ToInt32(str);結果是 a 為 123 ...
確定! 回上一頁