double d1 = 3.14159; double d2 = 2.71828; double sum = d1 + d2; Console.WriteLine(sum); // outputs 5.85987
double d = Double.Parse("3.14159"); Console.WriteLine(d); // outputs 3.14159
double max = Double.MaxValue; double min = Double.MinValue; Console.WriteLine("Max value: " + max); Console.WriteLine("Min value: " + min);This example shows how to get the maximum and minimum values for the double data type using the Double.MaxValue and Double.MinValue constants. The System Double data type is part of the .NET class library, which is included with the .NET Framework installation. Therefore, no additional package library is required.