System::Decimal::CompareTo método

Decimal::CompareTo method

Determina si el valor representado por el objeto actual es menor, igual o mayor que el valor representado por el objeto especificado.

int System::Decimal::CompareTo(const Decimal &d) const
ParámetroTipoDescripción
dconst Decimal&El comparando

ReturnValue

-1 if the value represented by the current object is less than the value represented by d; 0 if the values are equal; 1 if the value represented by the current object is greater than the value represented by d

Ver también