Metodo System::Decimal::Compare

Decimal::Compare method

Determina se il valore rappresentato dal primo oggetto Decimal è inferiore, uguale o superiore al valore rappresentato dal secondo oggetto Decimal.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParametroTipoDescrizione
d1const Decimal&Il primo comparando
d2const Decimal&Il secondo comparando

ReturnValue

-1 if the value represented by d1 is less than the value represented by d2; 0 if the values are equal; 1 if the value represented by d1 is greater than the value represented by d2

Vedi anche