Single::NegativeInfinity Field


Represents negative infinity. This field is constant.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

literal float NegativeInfinity

Field Value

Type: System::Single

The value of this constant is the result of dividing a negative number by zero.

This constant is returned when the result of an operation is less than MinValue.

Use IsNegativeInfinity to determine whether a value evaluates to negative infinity.

The following code example demonstrates the NegativeInfinity constant.

// This will equal Infinity.
Console::WriteLine( "10.0 minus NegativeInfinity equals {0}.", (10.0 - Single::NegativeInfinity) );

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top