WriteLine(c.ToString("E") + "\n"); double d = 2.5; Console.WriteLine(d.ToString()+".ToString(\"F2\") 表示保留小数点位数"); Console.WriteLine(d.
確定! 回上一頁