## Decimal::Compare method


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

```cpp
static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| d1 | const Decimal\& | المقارن الأول |
| d2 | const 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**

## انظر أيضًا

* Class [Decimal](../)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
