This documentation is archived and is not being maintained.

Single.MinValue Field

Represents the smallest possible value of Single. This field is constant.

[Visual Basic]
Public Const MinValue As Single
public const float MinValue;
public: const float MinValue;
public var MinValue : float;


The value of this constant is negative 3.402823e38.


[Visual Basic, C#, C++] The following sample demonstrates the MinValue constant.

[Visual Basic] 
If S < Single.MinValue Then
    Console.WriteLine("Your number is smaller than a Single.")
End If

if (s < Single.MinValue)
    Console.WriteLine("Your number is smaller than a Single.");

if (s < Single::MinValue) {
   Console::WriteLine(S"Your number is smaller than a Single.");

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Single Structure | Single Members | System Namespace | MaxValue