C# Single MinValue
Description
Single MinValue
represents the smallest possible value
of Single. This field is constant.
Syntax
Single.MinValue
has the following syntax.
public const float MinValue
Example
The following code shows how to use Single.MinValue.
/*w w w. j a va 2s . co m*/
using System;
public class Example
{
public static void Main()
{
float result1 = -8.997e37f + Single.MinValue;
Console.WriteLine("{0} (Negative Infinity: {1})",
result1, Single.IsNegativeInfinity(result1));
}
}
The code above generates the following result.