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



Teradata.Client.Provider Namespace > TdDecimal Structure : GreaterThan Method
An instance of TdDecimal.
An instance of TdDecimal.
Compares two TdDecimals to determine whether the left operand is greater than the right operand.
Syntax
'Declaration
 
Public Shared Function GreaterThan( _
   ByVal left As TdDecimal, _
   ByVal right As TdDecimal _
) As Boolean
'Usage
 
Dim left As TdDecimal
Dim right As TdDecimal
Dim value As Boolean
 
value = TdDecimal.GreaterThan(left, right)
public static bool GreaterThan( 
   TdDecimal left,
   TdDecimal right
)
public:
static bool GreaterThan( 
   TdDecimal left,
   TdDecimal right
) 

Parameters

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

Return Value

true if the left is greater than the right, false otherwise.

Return Value Description
true left and right are not TdDecimal.Null and left is greater than right.
false

left and / or right is Null

-or-

left is less than or equal to right.

Remarks

Comparison operators always returns false if one of the operands is Null. Therefore, you must not assume that the reverse condition is true. For example you cannot assume that the left operand is less than or equal to the right operand if the GreaterThan operator returns false.

The reverse condition is true when left and right operands are not 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