Decimal..::..Subtract Method
Subtracts one specified Decimal value from another.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static decimal Subtract( decimal d1, decimal d2 )
<TemplateAttribute> _ Public Shared Function Subtract ( _ d1 As Decimal, _ d2 As Decimal _ ) As Decimal
[TemplateAttribute] public: static Decimal^ Subtract( Decimal^ d1, Decimal^ d2 )
Return Value
The result of subtracting d2 from d1.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | The return value is less than MinValue or greater than MaxValue. |