Condividi tramite


CComCurrency::operator /=

 

Pubblicato: aprile 2016

Questo operatore viene utilizzato per eseguire la divisione in un oggetto CComCurrency e per assegnare il risultato.

Sintassi

      const CComCurrency & operator /=(
   long nOperand 
);

Parametri

  • nOperand
    Divisore.

Valore restituito

Restituisce l'oggetto aggiornato CComCurrency. Se il divisore è 0, un errore di asserzione si verifichi.

Esempio

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

Requisiti

Header: atlcur.h

Vedere anche

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