Languages
[Edit]
EN

C# / .NET- max double value

3 points
Created by:
Dharman
518

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

References

  1. Double.MaxValue Field (System) | Microsoft Docs

See also

  1. C# / .NET - min double value

  2. C# / .NET - min float value

  3. C# / .NET - max float value

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join