Export (0) Print
Expand All

Single.MinValue Field

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

[Visual Basic]
Public Const MinValue As Single
[C#]
public const float MinValue;
[C++]
public: const float MinValue;
[JScript]
public var MinValue : float;

Remarks

The value of this constant is negative 3.402823e38.

Example

[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

[C#] 
if (s < Single.MinValue)
{
    Console.WriteLine("Your number is smaller than a Single.");
}

[C++] 
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.

Requirements

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

Show:
© 2014 Microsoft