C# decimal类型,它比double类型精度更高 using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { decimal min = decimal.MinValue; decimal max = decimal.MaxValue; Console.WriteLine($"The range of the decimal type is {min} to {max}"); } } }