This topic has not yet been rated - Rate this topic

CComCurrency::operator /

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

CComCurrency operator /( 
   long nOperand  
) const;
nOperand

The divisor.

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

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

Header: atlcur.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.