double max = double.MaxValue;
double min = double.MinValue;
Console.WriteLine($"The range of double is {min} to {max}");
输出 The range of double is -1.79769313486232E+308 to 1.79769313486232E+308
打印出来的这些值用科学记数法表示。 E
左侧为有效数字。 右侧为是 10 的 n 次幂。
与数学上的十进制数字一样,C# 中的双精度值可能会有四舍五入误差。