Send feedback on this topic.
Teradata.Client.Provider
CompareTo(Object) Method



Teradata.Client.Provider Namespace > TdDecimal Structure > CompareTo Method : CompareTo(Object) Method
TdDecimal instance to compare against.
Compares this instance to the specified TdDecimal obj.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal obj As Object _
) As Integer
'Usage
 
Dim instance As TdDecimal
Dim obj As Object
Dim value As Integer
 
value = instance.CompareTo(obj)
public int CompareTo( 
   object obj
)
public:
int CompareTo( 
   Object^ obj
) 

Parameters

obj
TdDecimal instance to compare against.

Return Value

A signed number indicating how this instance compares to obj.

Return Value Meaning
Less than Zero

This instance is less than obj.

-or-

This instance is TdDecimal.Null.

Zero

This instance is equal to obj.

-or-

This instance is Null and obj is Null.

Greater than Zero

This instance is greater than obj.

-or-

obj is Null or a null reference.

Exceptions
ExceptionDescription
obj is not of type TdDecimal
Remarks

obj must be an instance of TdDecimal type or null reference.

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
Overload List
CompareTo(TdDecimal) Method