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

Decimal::Compare method

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

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParameterTypeالوصف
d1const Decimal&المقارنة الأولى
d2const Decimal&المقارنة الثانية

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

انظر أيضًا