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

Decimal::Compare method

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

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
معاملنوعالوصف
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

انظر أيضًا