RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Currency::/ Operator (Currency&)

Divides the value of the System::Currency::Currency object by a specified value.

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

Use the System::Currency::/ to divide the value of the System::Currency::Currency object by the value specified by the rhs operand.  

Note that there are two related friend System::Currency::/s:

friend Currency __fastcall operator /(int lhs, const Currency& rhs);

divides the value of int lhs by the value of System::Currency::Currency object rhs and returns a new System::Currency::Currency object with the resulting value.

friend Currency __fastcalloperator /(double lhs, const Currency& rhs);

divides the value of double lhs by the value of System::Currency::Currency object rhs and returns a System::Currency::Currency object with the resulting value. 

 

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