'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.
| Product | Versions | Platforms |
|---|---|---|
| .NET | 6, 7 | Windows, Linux, MacOS |
| .NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
| .NET Standard | 2.0 | Windows, Linux, MacOS |