Bridge

Double..::..CompareTo Method (Double)

Compares this instance to a specified double-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified double-precision floating-point number.

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

Syntax


[TemplateAttribute]
public int CompareTo(
	double other
)
<TemplateAttribute> _
Public Function CompareTo ( _
	other As Double _
) As Integer
[TemplateAttribute]
public:
int^ CompareTo(
	double^ other
)

Parameters

other
Type: System..::..Double

Return Value

A signed number indicating the relative values of this instance and value.Return Value Description Less than zero This instance is less than value.-or- This instance is not a number (NaN) and value is a number. Zero This instance is equal to value.-or- Both this instance and value are not a number (NaN), PositiveInfinity, or NegativeInfinity. Greater than zero This instance is greater than value.-or- This instance is a number and value is not a number (NaN).