Bridge

Decimal..::..Compare Method

Compares two specified Decimal values.

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

Syntax


[TemplateAttribute]
public static int Compare(
	decimal d1,
	decimal d2
)
<TemplateAttribute> _
Public Shared Function Compare ( _
	d1 As Decimal, _
	d2 As Decimal _
) As Integer
[TemplateAttribute]
public:
static int^ Compare(
	Decimal^ d1, 
	Decimal^ d2
)

Parameters

d1
Type: System..::..Decimal
The first value to compare.
d2
Type: System..::..Decimal
The second value to compare.

Return Value

A signed number indicating the relative values of d1 and d2.Return value Meaning Less than zero d1 is less than d2. Zero d1 and d2 are equal. Greater than zero d1 is greater than d2.