'Declaration Public Shared Function Subtract( _ 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 result
'Declaration Public Shared Function Subtract( _ ByVal left As TdDecimal, _ ByVal right As TdDecimal _ ) As TdDecimal
| Exception | Description |
|---|---|
| System.OverflowException | 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_Subtraction for an example of subtracting 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 |