'Declaration Public Shared Function Add( _ ByVal left As TdDecimal, _ ByVal right As TdDecimal _ ) As TdDecimal
Parameters
- left
- The left operand.
- right
- The right operand.
Return Value
A TdDecimal containing the sum.
'Declaration Public Shared Function Add( _ ByVal left As TdDecimal, _ ByVal right As TdDecimal _ ) As TdDecimal
Exception | Description |
---|---|
System.OverflowException | 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. |
If one of the parameter is TdDecimal.Null, the result will be TdDecimal.Null
.
Please refer to TdDecimal.op_Addition for more information.
Please refer to TdDecimal.op_Addition for an example of adding two TdDecimals.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019