طريقة System::Decimal::CompareTo

Decimal::CompareTo method

يحدد ما إذا كانت القيمة التي يمثلها الكائن الحالي أصغر من أو تساوي أو أكبر من القيمة التي يمثلها الكائن المحدد.

int System::Decimal::CompareTo(const Decimal &d) const
معاملنوعالوصف
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

انظر أيضًا