다음을 통해 공유


CComCurrency::operator /

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

CComCurrency operator /(
   long nOperand 
) const;

Parameters

  • nOperand
    The divisor.

Return Value

Returns a CComCurrency object representing the result of the division. If the divisor is 0, an assert failure will occur.

Example

CComCurrency cur1(10, 5000), cur2;
cur2 = cur1 / 10;
ATLASSERT(cur2 == CComCurrency(1, 500));

Requirements

Header: atlcur.h

See Also

Concepts

CComCurrency Class

CComCurrency Members

CComCurrency::operator /=

CComCurrency::operator +

CComCurrency::operator -

CComCurrency::operator *