RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Currency::- Operator ()

Returns a new System::Currency object that is the negative value of this System::Currency object.

Pascal
operator -(const rhs: Currency&);
operator -(rhs: Integer);
operator -(rhs: double);
operator -;
C++
__fastcall Currency operator -(const Currency& rhs) const;
__fastcall Currency operator -(int rhs) const;
__fastcall Currency operator -(double rhs) const;
__fastcall Currency operator -() const;

Use the unary – operator to change the sign of the System::Currency object (effectively multiplying it by –1). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!