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



Teradata.Client.Provider Namespace > TdDecimal Structure : Subtract Method
The left operand.
The right operand.
Calculates the result of subtracting two TdDecimal operands.
Syntax
'Declaration
 
Public Shared Function Subtract( _
   ByVal left As TdDecimal, _
   ByVal right As TdDecimal _
) As TdDecimal
'Usage
 
Dim left As TdDecimal
Dim right As TdDecimal
Dim value As TdDecimal
 
value = TdDecimal.Subtract(left, right)
public static TdDecimal Subtract( 
   TdDecimal left,
   TdDecimal right
)
public:
static TdDecimal Subtract( 
   TdDecimal left,
   TdDecimal right
) 

Parameters

left
The left operand.
right
The right operand.

Return Value

A TdDecimal containing the result
Exceptions
ExceptionDescription
The scale of an operand could not be adjusted to match the other operand's scale.
Remarks

If one of the parameter is TdDecimal.Null, the result will be TdDecimal.Null.

Please refer to TdDecimal.op_Subtraction for more information.
Example

Please refer to TdDecimal.op_Subtraction for an example of subtracting two TdDecimals.

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