EN
C# / .NET- max double value
3
points
In C#, max double number value can be achieved using double.MaxValue
which is equal to 1.7976931348623157E+308
.
Quick solution:
double maxValue = double.MaxValue;
or:
double maxValue = Double.MaxValue;
Practical example
using System;
public class TestClass
{
public static void Main()
{
double maxValue = double.MaxValue;
Console.WriteLine(maxValue);
}
}
Output:
1.7976931348623157E+308