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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version