NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.Negate

Returns the negated value of the specified Decimal.

[Visual Basic]
Public Shared Function Negate( _
   ByVal d As Decimal _
) As Decimal
[C#]
public static Decimal Negate(
   Decimal d
);
[C++]
public: static Decimal Negate(
   Decimal d
);
[JScript]
public static function Negate(
   d : Decimal
) : Decimal;

Parameters

d
A Decimal value.

Return Value

The negated value of the argument.

Remarks

The Negate method returns the negative of the specified Decimal value. For example:

If d is non-zero, the result is -d.

If d is zero, the result is zero.

See Also

Decimal Structure | Decimal Members | System Namespace