Send feedback on this topic.
Teradata.Client.Provider
LessThanOrEqual Method (TdNumber)



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

Parameters

left
An instance of TdNumber.
right
An instance of TdNumber.

Return Value

true if the left is less than or equal to the right, false otherwise.

Return Value Description
true left and right are not TdNumber.Null and left is less than or equal to right.
false

left and / or right is Null

-or-

left is greater than 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 greater than the right operand if the LessThanOrEqual operator returns false.

The reverse condition is true when left and right operands are not Null.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdNumber Structure
TdNumber Members