Share via


CComCurrency::operator <=

This operator compares two CComCurrency objects to determine equality or the lesser.

bool operator <=(
   const CComCurrency & cur 
) const;

Parameters

  • cur
    A CComCurrency object.

Return Value

Returns true if the first object is less than or equal to the second, false otherwise.

Example

CComCurrency cur1(10, 4900);
CComCurrency cur2(10, 5000);
ATLASSERT(cur1 <= cur2);

Requirements

Header: atlcur.h

See Also

Reference

CComCurrency Class

CComCurrency::operator >=

CComCurrency::operator >

CComCurrency::operator <

Other Resources

CComCurrency Members