double a = Math.Round(1.223, 2); //四捨五入 1.22 double b = Math.Floor(100 * 1.223) / 100; //無條件捨去 1.22 double c = Math.Pow(1.5, 2); //X的Y次方 2.25 double d = Math.Sqrt(2.25); //平方根 1.5 double e = Math.Abs(-2.25); //絕對值 2.25 //商數 f = 6 ,餘數 result = 1 double f = Math.DivRem(25, 4, out int result); double g = Math.IEEERemainder(25, 4); //餘數 1