CComCurrency::operator /=

 

此运算符用于执行在 CComCurrency 对象的除法并将其分配结果。

语法

      const CComCurrency & operator /=(
   long nOperand 
);

参数

  • nOperand
    除数。

返回值

返回更新 CComCurrency 对象。如果该除数为0,断言失败将发生。

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

要求

Header: atlcur.h

请参阅

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