CComCurrency::operator /=

 

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

Syntax

      const CComCurrency & operator /=(
   long nOperand 
);

Parameters

  • nOperand
    The divisor.

Return Value

Returns the updated CComCurrency object. If the divisor is 0, an assert failure will occur.

Example

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

Requirements

Header: atlcur.h

See Also

CComCurrency Class
CComCurrency::operator /
CComCurrency::operator +
CComCurrency::operator -
CComCurrency::operator *