System::Decimal::CompareTo‑metod

Decimal::CompareTo method

Bestämmer om värdet som representeras av det aktuella objektet är mindre än, lika med eller större än värdet som representeras av det angivna objektet.

int System::Decimal::CompareTo(const Decimal &d) const
ParameterTypeBeskrivning
dconst Decimal&Jämförelseobjektet

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

Se även