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



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

Parameters

other
The TdDecimal to compare against.

Return Value

A signed number indicating how this instance compares to other.

Return Value Meaning
Less than Zero

This instance is less than other.

-or-

This instance is TdDecimal.Null.

Zero

This instance is equal to other.

-or-

This instance is Null and value is Null.

Greater than Zero

This instance is greater than other.

-or-

other is Null.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDecimal Structure
TdDecimal Members
Overload List