Freigeben über


Single.NegativeInfinity-Feld

Stellt minus unendlich dar. Dieses Feld ist konstant.

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

Syntax

'Declaration
Public Const NegativeInfinity As Single
'Usage
Dim value As Single

value = Single.NegativeInfinity
public const float NegativeInfinity
public:
literal float NegativeInfinity
public static final float NegativeInfinity
public const var NegativeInfinity : float

Hinweise

Der Wert dieser Konstanten ist das Ergebnis einer Division einer negativen Zahl durch 0 (null).

Diese Konstante wird zurückgegeben, wenn das Ergebnis einer Operation kleiner als MinValue ist.

Verwenden Sie die IsNegativeInfinity-Methode, um festzustellen, ob ein Wert gleich -unendlich ist. Durch einen Vergleich mit einem NegativeInfinity-Wert ist nicht feststellbar, ob ein Wert -unendlich ist.

Beispiel

Im folgenden Codebeispiel wird die NegativeInfinity-Konstante veranschaulicht.

' This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals " + (10 - Single.NegativeInfinity).ToString() + ".")
// This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals {0}.", (10.0 - Single.NegativeInfinity).ToString());
// This will equal Infinity.
Console::WriteLine( "10.0 minus NegativeInfinity equals {0}.", (10.0 - Single::NegativeInfinity) );
// This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals {0}.",
    String.valueOf((10.0 - Float.NEGATIVE_INFINITY)));

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

Single-Struktur
Single-Member
System-Namespace
IsNegativeInfinity
IsInfinity
PositiveInfinity