Returns the negated value of the specified Decimal.
[C#] public static Decimal operator +( Decimal d ); [C++] public: static Decimal operator op_UnaryPlus( 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.
Value Type | Condition |
---|---|
d | If the Decimal value is non-zero. |
If the Decimal value is zero. |
Exception Type | Condition |
---|---|
OverflowException | is thrown if the Decimal value is equal to Decimal.MinValue. |
The op_UnaryPlus method returns the positive value of the specified Decimal. For example:
If the Decimal value (d) is non-zero, the result is the positive of the Decimal value (+ d).
If the Decimal value (d) is zero, the result is zero (0).