## 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.PDF for C++](../../../)
