Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Double.NegativeInfinity Field
Definition
- Namespace:
- System
- Assemblies:
- mscorlib.dll, System.Runtime.dll
- Assemblies:
- netstandard.dll, System.Runtime.dll
- Assembly:
- System.Runtime.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Source:
- Double.cs
- Source:
- Double.cs
- Source:
- Double.cs
- Source:
- Double.cs
- Source:
- Double.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents negative infinity. This field is constant.
public: double NegativeInfinity = -Infinity;
public const double NegativeInfinity = -Infinity;
val mutable NegativeInfinity : double
Public Const NegativeInfinity As Double = -Infinity
Field Value
Value = -InfinityExamples
The following code example illustrates the use of NegativeInfinity:
// This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals {0}.", (10.0 - Double.NegativeInfinity).ToString());
// This will equal Infinity.
printfn $"10.0 minus NegativeInfinity equals {10.0 - Double.NegativeInfinity}."
' This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals " + (10 - Double.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 Double.MinValue.
Use IsNegativeInfinity to determine whether a value evaluates to negative infinity.
Applies to
See also
Feedback
Was this page helpful?
