CComCurrency::operator /

 

此运算符用于执行在 CComCurrency 对象的部门。

语法

      CComCurrency operator /(
   long nOperand 
) const;

参数

  • nOperand
    除数。

返回值

返回表示该部门的结果 CComCurrency 对象。如果该除数为0,断言失败将发生。

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

要求

Header: atlcur.h

请参阅

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