CComCurrency::operator/=

Utilizan este operador para realizar la división en un objeto y una asignación de CComCurrency el resultado.

const CComCurrency & operator /=(
   long nOperand 
);

Parámetros

  • nOperand
    Divisor.

Valor devuelto

devuelve el objeto actualizado de CComCurrency .Si el divisor es 0, un error validar aparecerá.

Ejemplo

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

Requisitos

encabezado: atlcur.h

Vea también

Referencia

Clase de CComCurrency

CComCurrency::operator/

CComCurrency::operator +

CComCurrency::operator -

CComCurrency::operator *