Share via


CComCurrency Members

Methods

CComCurrency

The constructor for a CComCurrency object.

GetCurrencyPtr

Returns the address of an m_currency data member.

GetFraction

Call this method to return the fractional component of a CComCurrency object.

GetInteger

Call this method to return the integer component of a CComCurrency object.

Round

Call this method to round a CComCurrency object to the nearest integer value.

SetFraction

Call this method to set the fractional component of a CComCurrency object.

SetInteger

Call this method to set the integer component of a CComCurrency object.

Operators

operator !=

Compares two CComCurrency objects for inequality.

operator *

This operator is used to perform multiplication on a CComCurrency object.

operator *=

This operator is used to perform multiplication on a CComCurrency object and assign it the result.

operator +

This operator is used to perform addition on a CComCurrency object.

operator +=

This operator is used to perform addition on a CComCurrency object and assign the result to the current object.

operator -

This operator is used to perform subtraction on a CComCurrency object.

operator -=

This operator is used to perform subtraction on a CComCurrency object and assign it the result.

operator /

This operator is used to perform division on a CComCurrency object.

operator /=

This operator is used to perform division on a CComCurrency object and assign it the result.

operator =

This operator assigns the CComCurrency object to a new value.

operator ==

This operator compares two CComCurrency objects for equality.

operator >

This operator compares two CComCurrency objects to determine the larger.

operator >=

This operator compares two CComCurrency objects to determine equality or the larger.

operator <

This operator compares two CComCurrency objects to determine the lesser.

operator <=

This operator compares two CComCurrency objects to determine equality or the lesser.

operator CURRENCY

Casts a CURRENCY object.

Data Members

m_currency

The CURRENCY variable created by your class instance.

See Also

Reference

CComCurrency Class