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选件类

CComCurrency::operator/=

CComCurrency::operator +

CComCurrency::operator -

CComCurrency::operator *