Send feedback on this topic.
Teradata.Client.Provider
Compare Method (TdDecimal)



Teradata.Client.Provider Namespace > TdDecimal Structure : Compare Method
An instance of TdDecimal.
An instance of TdDecimal.
Compares two instances of TdDecimal and returns a value indicating whether left is greater than, less than or equal to right.
Syntax
'Declaration
 
Public Shared Function Compare( _
   ByVal left As TdDecimal, _
   ByVal right As TdDecimal _
) As Integer
'Usage
 
Dim left As TdDecimal
Dim right As TdDecimal
Dim value As Integer
 
value = TdDecimal.Compare(left, right)
public static int Compare( 
   TdDecimal left,
   TdDecimal right
)
public:
static int Compare( 
   TdDecimal left,
   TdDecimal right
) 

Parameters

left
An instance of TdDecimal.
right
An instance of TdDecimal.

Return Value

Return Value Meaning
Less than zero

left is less than right.

-or-

left is TdDecimal.Null.

Zero

left is equal to right.

-or-

left and right are Null.

Greater than zero

left is greater than right.

-or-

right is Null.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDecimal Structure
TdDecimal Members
CompareTo(TdDecimal) Method