## Decimal::CompareTo method


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

```cpp
int System::Decimal::CompareTo(const Decimal &d) const
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| d | const 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**

## انظر أيضًا

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