Returns the sort order of the current instance compared to the specified double .
- value
- The double to compare to the current instance.
The return value is a negative number, zero, or a positive number reflecting the sort order of the current instance as compared to value. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:
Value Description Any negative number Current instance < value.
-or-
Current instance is a NaN and value is not a NaN.
Zero Current instance == value.
-or-
Current instance and value are both NaN, positive infinity, or negative infinity.
A positive number Current instance > value.
-or-
Current instance is not a NaN and value is a NaN.
Note: This method is implemented to support the IComparable<Double> interface.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0