Bridge

Decimal..::..Subtract Method

Subtracts one specified Decimal value from another.

Namespace:  System
Assembly:  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
)

Parameters

d1
Type: System..::..Decimal
The minuend.
d2
Type: System..::..Decimal
The subtrahend.

Return Value

The result of subtracting d2 from d1.

Exceptions


ExceptionCondition
System..::..OverflowExceptionThe return value is less than MinValue or greater than MaxValue.