Decrements the specified number.
[C#] public static Decimal operator -( Decimal d ); [C++] public: static Decimal operator op_UnaryNegation( Decimal d ); [JScript] returnValue = -d;
[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.
The result of evaluating d- 1.
Exception Type | Condition |
---|---|
OverflowException | is thrown if the result is too small to represent as a Decimal. |
The op_Decrement method performs the arithmetic addition operation of decrementing a specified Decimal value (d- 1)and returns the result.