Unary Negation(Decimal) Operator
Negates the value of the specified Decimal operand.
public: static System::Decimal operator -(System::Decimal d);
public static decimal operator - (decimal d);
static member ( ~- ) : decimal -> decimal
Public Shared Operator - (d As Decimal) As Decimal
The value to negate.
The result of
d multiplied by negative one (-1).
The UnaryPlus method defines the operation of the unary negation operator (or the additive inverse operator) for Decimal values. The operation produces a value that results in 0 (zero) when it is added to the original number. Languages that do not support custom operators can call the Negate method instead.
The equivalent method for this operator is Decimal.Negate(Decimal)