Decimal.UnaryNegation(Decimal) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Negates the value of the specified Decimal operand.
public:
static System::Decimal operator -(System::Decimal d);
public:
static System::Decimal operator -(System::Decimal d) = System::Numerics::IUnaryNegationOperators<System::Decimal, System::Decimal>::op_UnaryNegation;
public static decimal operator - (decimal d);
static member ( ~- ) : decimal -> decimal
Public Shared Operator - (d As Decimal) As Decimal
Parameters
- d
- Decimal
The value to negate.
Returns
The result of d
multiplied by negative one (-1).
Implements
Remarks
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)
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기