Deze browser wordt niet meer ondersteund.
Upgrade naar Microsoft Edge om te profiteren van de nieuwste functies, beveiligingsupdates en technische ondersteuning.
Microsoft Edge downloaden
Meer informatie over Internet Explorer en Microsoft Edge
public: float NegativeInfinity = -Infinity;
public const float NegativeInfinity = -Infinity;
val mutable NegativeInfinity : single
Public Const NegativeInfinity As Single = -Infinity
Field Value
Value = -Infinity
Single
The following code example demonstrates the
NegativeInfinity
constant.
// 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}.", (10.0 - Single.NegativeInfinity).ToString());
// This will equal Infinity.
printfn $"10.0 minus NegativeInfinity equals {10f - Single.NegativeInfinity}."
' This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals " + (10 - Single.NegativeInfinity).ToString() + ".")
Remarks
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.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:
https://aka.ms/ContentUserFeedback
.
Feedback verzenden en bekijken voor
Dit product