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



Teradata.Client.Provider Namespace > TdDecimal Structure : Add Method
The left operand.
The right operand.
Calculates the sum of the two TdDecimal operands.
Syntax
'Declaration
 
Public Shared Function Add( _
   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.Add(left, right)
public static TdDecimal Add( 
   TdDecimal left,
   TdDecimal right
)
public:
static TdDecimal Add( 
   TdDecimal left,
   TdDecimal right
) 

Parameters

left
The left operand.
right
The right operand.

Return Value

A TdDecimal containing the sum.
Exceptions
ExceptionDescription

The precision of the result exceeds the maximum precision (38) of a TdDecimal or

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_Addition for more information.

Example

Please refer to TdDecimal.op_Addition for an example of adding 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