Μέθοδος System::Decimal::CompareTo

Decimal::CompareTo method

Καθορίζει εάν η τιμή που αντιπροσωπεύεται από το τρέχον αντικείμενο είναι μικρότερη, ίση ή μεγαλύτερη από την τιμή που αντιπροσωπεύεται από το καθορισμένο αντικείμενο.

int System::Decimal::CompareTo(const Decimal &d) const
ParameterTypeΠεριγραφή
dconst Decimal&Το συγκριτικό

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

Δείτε επίσης