Languages
[Edit]
EN

C# / .NET - min double value

3 points
Created by:
Zeeshan-Peel
850

In C#, min double number value can be achieved using double.MinValue property which returns -1.7976931348623157E+308.

Quick solution:

double minValue = double.MinValue

or:

double minValue = Double.MinValue

 

Practical example

using System;

public class TestClass
{
    public static void Main()
    {
        double minValue = double.MinValue;

		Console.WriteLine(minValue);
    }
}

Output:

-1.7976931348623157E+308

See also

  1. C# / .NET - max double value

  2. C# / .NET - min float value

  3. C# / .NET - max float value

References

  1. Double.MinValue Field (System) | Microsoft Docs
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